Fix timeoffset hello calculation

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2019-12-11 16:36:08 +01:00
parent 98740e1a23
commit 86feebc899
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

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)