2
0

Remove Conn.lastActivityTime

It was only read in one place and that was an optimization to get the
current time. Replaced that usage with time.Now()
This commit is contained in:
Jack Christensen
2018-11-09 15:33:31 -06:00
parent a0d2ce5a0e
commit 670e85136f
3 changed files with 2 additions and 10 deletions
-2
View File
@@ -330,8 +330,6 @@ func (rc *ReplicationConn) WaitForReplicationMessage(ctx context.Context) (*Repl
}
func (rc *ReplicationConn) sendReplicationModeQuery(sql string) (*Rows, error) {
rc.c.lastActivityTime = time.Now()
rows := rc.c.getRows(sql, nil)
if err := rc.c.lock(); err != nil {