From 47e467057d9a2d81ab42265815a5f7a34d296b71 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Wed, 20 May 2020 04:28:29 +0200 Subject: [PATCH] change timeouts to avoid long wait times --- manager/transfer.go | 4 ++-- manager/ytsync.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manager/transfer.go b/manager/transfer.go index 4230f8e..720eb2d 100644 --- a/manager/transfer.go +++ b/manager/transfer.go @@ -95,8 +95,8 @@ func abandonSupports(s *Sync) (float64, error) { }() consumerWG := &stop.Group{} //TODO: remove this once the SDK team fixes their RPC bugs.... - s.daemon.SetRPCTimeout(30 * time.Second) - defer s.daemon.SetRPCTimeout(20 * time.Minute) + s.daemon.SetRPCTimeout(60 * time.Second) + defer s.daemon.SetRPCTimeout(5 * time.Minute) for i := 0; i < s.ConcurrentVideos; i++ { consumerWG.Add(1) go func() { diff --git a/manager/ytsync.go b/manager/ytsync.go index c2d630f..d08d40f 100644 --- a/manager/ytsync.go +++ b/manager/ytsync.go @@ -307,7 +307,7 @@ func (s *Sync) FullCycle() (e error) { log.Infoln("Waiting for daemon to finish starting...") s.daemon = jsonrpc.NewClient(os.Getenv("LBRYNET_ADDRESS")) - s.daemon.SetRPCTimeout(20 * time.Minute) + s.daemon.SetRPCTimeout(5 * time.Minute) err = s.waitForDaemonStart() if err != nil {