From 7f48ff671787e5d789394a2effb5de7c35c796c0 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Fri, 21 Jun 2019 15:45:02 -0700 Subject: [PATCH] watchtower: fix linter errors --- watchtower/wtclient/session_queue.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/watchtower/wtclient/session_queue.go b/watchtower/wtclient/session_queue.go index 649bf8fe..de802734 100644 --- a/watchtower/wtclient/session_queue.go +++ b/watchtower/wtclient/session_queue.go @@ -316,8 +316,8 @@ func (q *sessionQueue) drainBackups() { // before attempting to dequeue any pending updates. stateUpdate, isPending, backupID, err := q.nextStateUpdate() if err != nil { - log.Errorf("SessionQueue(%s) unable to get next state "+ - "update: %v", err) + log.Errorf("SessionQueue(%v) unable to get next state "+ + "update: %v", q.ID(), err) return } @@ -557,7 +557,7 @@ func (q *sessionQueue) sendStateUpdate(conn wtserver.Peer, // TODO(conner): borked watchtower err = fmt.Errorf("unable to ack seqnum=%d: %v", stateUpdate.SeqNum, err) - log.Errorf("SessionQueue(%s) failed to ack update: %v", err) + log.Errorf("SessionQueue(%v) failed to ack update: %v", q.ID(), err) return err case err == wtdb.ErrLastAppliedReversion: