Jakub Sokołowski b307b82ac4 re-add removing of peers
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-01 13:07:20 -04:00

18 lines
190 B
Go

package main
import (
"time"
)
func FetchLoop(state *State) {
for {
select {
case <-threadDone:
return
default:
state.Fetch()
}
<-time.After(interval * time.Second)
}
}