Skip to content
Snippets Groups Projects
Unverified Commit 6bf3db9e authored by Luca Moser's avatar Luca Moser Committed by GitHub
Browse files

removes network delay fmt.Println spam (#558)

parent b00f7526
No related branches found
No related tags found
No related merge requests found
package networkdelay
import (
"fmt"
"sync"
"time"
......@@ -111,7 +110,6 @@ func onReceiveMessageFromMessageLayer(cachedMessage *message.CachedMessage, cach
// abort if message was sent more than 1min ago
// this should only happen due to a node resyncing
fmt.Println(time.Duration(now-networkDelayObject.sentTime), time.Minute)
if time.Duration(now-networkDelayObject.sentTime) > time.Minute {
log.Debugf("Received network delay message with >1min delay\n%s", networkDelayObject)
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment