Merge pull request #865 from filecoin-project/fix/time-offset

Fix timeoffset hello calculation
This commit is contained in:
Łukasz Magiera
2019-12-11 16:40:17 +01:00
committed by GitHub
+1 -1
View File
@@ -139,7 +139,7 @@ func (hs *Service) SayHello(ctx context.Context, pid peer.ID) error {
hmsg = &Message{}
s.SetReadDeadline(time.Now().Add(10 * time.Second))
err := cborutil.ReadCborRPC(s, hmsg) // ignore error
ok := err != nil
ok := err == nil
t3 := time.Now()
lat := t3.Sub(t0)