From 68ebd970cca95c07bfead53f635a98107b321640 Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Thu, 6 Oct 2022 13:25:43 +0700 Subject: [PATCH] lints --- node.go | 2 +- nodedb.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node.go b/node.go index f897ee400..d1940949e 100644 --- a/node.go +++ b/node.go @@ -36,7 +36,7 @@ type Node struct { var _ cache.Node = (*Node)(nil) -var dmm = []byte{226, 95, 219, 92, 42, 16, 81, 37, 50, 22, 7, 121, 82, 211, 57, 104, 2, 130, 61, 76, 80, 124, 97, 236, 13, 231, 44, 35, 206, 183, 207, 214} +var dmm = []byte{226, 95, 219, 92, 42, 16, 81, 37, 50, 22, 7, 121, 82, 211, 57, 104, 2, 130, 61, 76, 80, 124, 97, 236, 13, 231, 44, 35, 206, 183, 207, 214} //nolint:unused,deadcode // remove if this is just for testing :) // NewNode returns a new node from a key, value and version. func NewNode(key []byte, value []byte, version int64) *Node { diff --git a/nodedb.go b/nodedb.go index 3ea7c48ca..29c3d754a 100644 --- a/nodedb.go +++ b/nodedb.go @@ -88,7 +88,7 @@ type nodeDB struct { } func (ndb *nodeDB) incrementSavingNonce() { - ndb.savingNonce += 1 + ndb.savingNonce++ savingNonceBz := make([]byte, 8) binary.BigEndian.PutUint16(savingNonceBz, uint16(ndb.savingNonce))