From cd6d22d1c137ffa48e3980de1b01e22a1300dd8b Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Fri, 31 Mar 2023 11:04:01 +0200 Subject: [PATCH] chore: re-enable toggle is connected flag --- rpc/chain/client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpc/chain/client.go b/rpc/chain/client.go index 54ce2b939..5718eb52e 100644 --- a/rpc/chain/client.go +++ b/rpc/chain/client.go @@ -205,14 +205,14 @@ func (c *ClientWithFallback) makeCallSingleReturn(main func() (any, error), fall } return err } - if true { + if toggleIsConnected { c.SetIsConnected(true) } resultChan <- CommandResult{res1: res} return nil }, func(err error) error { if c.fallback == nil { - if true { + if toggleIsConnected { c.SetIsConnected(false) } return err @@ -224,12 +224,12 @@ func (c *ClientWithFallback) makeCallSingleReturn(main func() (any, error), fall resultChan <- CommandResult{vmError: err} return nil } - if true { + if toggleIsConnected { c.SetIsConnected(false) } return err } - if true { + if toggleIsConnected { c.SetIsConnected(true) } resultChan <- CommandResult{res1: res}