Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
tweak: Extend ticker time for push nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
drwasho authored and hoffmabc committed Apr 7, 2020
1 parent 1751232 commit 49abef7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/retriever/retriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func NewMessageRetriever(cfg MRConfig) *MessageRetriever {

func (m *MessageRetriever) Run() {
dht := time.NewTicker(time.Second * 60)
peers := time.NewTicker(time.Second * 10)
peers := time.NewTicker(time.Second * 60)
defer dht.Stop()
defer peers.Stop()
go m.fetchPointersFromPushNodes()
Expand Down Expand Up @@ -237,7 +237,7 @@ func (m *MessageRetriever) getPointersFromDataPeersRoutine(peerOut chan ps.PeerI
defer wg.Done()
ctx, cancel := context.WithTimeout(context.Background(), time.Second*35)
defer cancel()
time.Sleep(time.Second*15)
time.Sleep(time.Second * 15)
provs, err := ipfs.GetPointersFromPeer(m.routing, ctx, pid, &k)
if err != nil {
log.Errorf("Could not get pointers from push node because: %v", err)
Expand Down

0 comments on commit 49abef7

Please sign in to comment.