From e79ed6d57d1ed03c85ba0dd0bbe63d387a44fed5 Mon Sep 17 00:00:00 2001 From: Peter Wilhelmsson Date: Fri, 15 May 2020 16:04:09 +0200 Subject: [PATCH] Milliseconds does not exist on go 1.10 --- neo4j/internal/bolt/bolt3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo4j/internal/bolt/bolt3.go b/neo4j/internal/bolt/bolt3.go index 230e9b22..68a0ec8f 100644 --- a/neo4j/internal/bolt/bolt3.go +++ b/neo4j/internal/bolt/bolt3.go @@ -73,7 +73,7 @@ func (i *internalTx) toMeta() map[string]interface{} { if len(i.bookmarks) > 0 { meta["bookmarks"] = i.bookmarks } - ms := int(i.timeout.Milliseconds()) + ms := int(i.timeout.Nanoseconds() / 1e6) if ms > 0 { meta["tx_timeout"] = ms }