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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user