change timeouts to avoid long wait times
This commit is contained in:
parent
1ae32d638b
commit
47e467057d
2 changed files with 3 additions and 3 deletions
|
@ -95,8 +95,8 @@ func abandonSupports(s *Sync) (float64, error) {
|
||||||
}()
|
}()
|
||||||
consumerWG := &stop.Group{}
|
consumerWG := &stop.Group{}
|
||||||
//TODO: remove this once the SDK team fixes their RPC bugs....
|
//TODO: remove this once the SDK team fixes their RPC bugs....
|
||||||
s.daemon.SetRPCTimeout(30 * time.Second)
|
s.daemon.SetRPCTimeout(60 * time.Second)
|
||||||
defer s.daemon.SetRPCTimeout(20 * time.Minute)
|
defer s.daemon.SetRPCTimeout(5 * time.Minute)
|
||||||
for i := 0; i < s.ConcurrentVideos; i++ {
|
for i := 0; i < s.ConcurrentVideos; i++ {
|
||||||
consumerWG.Add(1)
|
consumerWG.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
|
|
|
@ -307,7 +307,7 @@ func (s *Sync) FullCycle() (e error) {
|
||||||
|
|
||||||
log.Infoln("Waiting for daemon to finish starting...")
|
log.Infoln("Waiting for daemon to finish starting...")
|
||||||
s.daemon = jsonrpc.NewClient(os.Getenv("LBRYNET_ADDRESS"))
|
s.daemon = jsonrpc.NewClient(os.Getenv("LBRYNET_ADDRESS"))
|
||||||
s.daemon.SetRPCTimeout(20 * time.Minute)
|
s.daemon.SetRPCTimeout(5 * time.Minute)
|
||||||
|
|
||||||
err = s.waitForDaemonStart()
|
err = s.waitForDaemonStart()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue