Fix timeoffset hello calculation
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
98740e1a23
commit
86feebc899
@ -139,7 +139,7 @@ func (hs *Service) SayHello(ctx context.Context, pid peer.ID) error {
|
|||||||
hmsg = &Message{}
|
hmsg = &Message{}
|
||||||
s.SetReadDeadline(time.Now().Add(10 * time.Second))
|
s.SetReadDeadline(time.Now().Add(10 * time.Second))
|
||||||
err := cborutil.ReadCborRPC(s, hmsg) // ignore error
|
err := cborutil.ReadCborRPC(s, hmsg) // ignore error
|
||||||
ok := err != nil
|
ok := err == nil
|
||||||
|
|
||||||
t3 := time.Now()
|
t3 := time.Now()
|
||||||
lat := t3.Sub(t0)
|
lat := t3.Sub(t0)
|
||||||
|
Loading…
Reference in New Issue
Block a user