From b6f474ae3c418edc3bbe8450961356695587cae0 Mon Sep 17 00:00:00 2001
From: Benjamin Wenger <ben@elixxir.ioo>
Date: Tue, 4 May 2021 16:27:58 -0700
Subject: [PATCH] fixed sendCmix time delay and the interface for bindings time
 now

---
 bindings/timeNow.go         | 4 ++--
 network/message/sendCmix.go | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bindings/timeNow.go b/bindings/timeNow.go
index dbeda1696..82cc2d798 100644
--- a/bindings/timeNow.go
+++ b/bindings/timeNow.go
@@ -13,12 +13,12 @@ import (
 )
 
 type TimeSource interface {
-	NowMs() int
+	NowMs() int64
 }
 
 // SetTimeSource sets the network time to a custom source.
 func SetTimeSource(timeNow TimeSource) {
 	netTime.Now = func() time.Time {
-		return time.Unix(0, int64(timeNow.NowMs()*int(time.Millisecond)))
+		return time.Unix(0,timeNow.NowMs()*int64(time.Millisecond))
 	}
 }
diff --git a/network/message/sendCmix.go b/network/message/sendCmix.go
index eca56777b..1b4f0e109 100644
--- a/network/message/sendCmix.go
+++ b/network/message/sendCmix.go
@@ -34,7 +34,7 @@ type sendCmixCommsInterface interface {
 }
 
 // 1.5 seconds
-const sendTimeBuffer = 3500 * time.Millisecond
+const sendTimeBuffer = 1500 * time.Millisecond
 
 // WARNING: Potentially Unsafe
 // Public manager function to send a message over CMIX
-- 
GitLab