From 5e1ac84d3787410650e141cd986cc96b10bc7c71 Mon Sep 17 00:00:00 2001 From: Sergey Cherepanov Date: Mon, 15 May 2023 20:30:32 +0200 Subject: [PATCH] increase sendSync timeout --- commonspace/objectsync/msgpool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commonspace/objectsync/msgpool.go b/commonspace/objectsync/msgpool.go index 533efc7e..acce59f7 100644 --- a/commonspace/objectsync/msgpool.go +++ b/commonspace/objectsync/msgpool.go @@ -54,7 +54,7 @@ func newMessagePool(peerManager peermanager.PeerManager, messageHandler MessageH func (s *messagePool) SendSync(ctx context.Context, peerId string, msg *spacesyncproto.ObjectSyncMessage) (reply *spacesyncproto.ObjectSyncMessage, err error) { s.updateLastUsage() var cancel context.CancelFunc - ctx, cancel = context.WithTimeout(ctx, time.Second*10) + ctx, cancel = context.WithTimeout(ctx, time.Minute) defer cancel() newCounter := s.counter.Add(1) msg.RequestId = genReplyKey(peerId, msg.ObjectId, newCounter)