Skip to content

Commit

Permalink
Milliseconds does not exist on go 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Wilhelmsson authored and 2hdddg committed May 15, 2020
1 parent cf1d447 commit e79ed6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo4j/internal/bolt/bolt3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e79ed6d

Please sign in to comment.