From 826051bb488c7f8835d0ac2be17767fa6c9edcd3 Mon Sep 17 00:00:00 2001 From: Muhamad Azamy Date: Fri, 26 May 2023 16:40:20 +0200 Subject: [PATCH] uptime should not retry --- clients/tfchain-client-go/node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/tfchain-client-go/node.go b/clients/tfchain-client-go/node.go index 4d99e9708..ab8d2b016 100644 --- a/clients/tfchain-client-go/node.go +++ b/clients/tfchain-client-go/node.go @@ -604,12 +604,12 @@ func (s *Substrate) UpdateNodeUptime(identity Identity, uptime uint64) (hash typ return hash, errors.Wrap(err, "failed to create call") } - callResponse, err := s.Call(cl, meta, identity, c) + hash, err = s.CallOnce(cl, meta, identity, c) if err != nil { return hash, errors.Wrap(err, "failed to update node uptime") } - return callResponse.Hash, nil + return hash, nil } // GetNode with id