Skip to content

Commit

Permalink
rename variable in data.go for correctly linting
Browse files Browse the repository at this point in the history
  • Loading branch information
WithSoull committed Dec 24, 2024
1 parent 08f8575 commit a073537
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions internal/app/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,15 @@ type SlaveState struct {
LastSQLErrno int `json:"last_sql_errno"`
}

func (ns *SlaveState) FromReplicaStatus(replStatus mysql.ReplicaStatus) {
ns.ExecutedGtidSet = replStatus.GetExecutedGtidSet()
ns.RetrievedGtidSet = replStatus.GetRetrievedGtidSet()
ns.MasterHost = replStatus.GetMasterHost()
ns.ReplicationState = replStatus.ReplicationState()
ns.MasterLogFile = replStatus.GetMasterLogFile()
ns.MasterLogPos = replStatus.GetReadMasterLogPos()
ns.LastIOErrno = replStatus.GetLastIOErrno()
ns.LastSQLErrno = replStatus.GetLastSQLErrno()
func (ss *SlaveState) FromReplicaStatus(replStatus mysql.ReplicaStatus) {
ss.ExecutedGtidSet = replStatus.GetExecutedGtidSet()
ss.RetrievedGtidSet = replStatus.GetRetrievedGtidSet()
ss.MasterHost = replStatus.GetMasterHost()
ss.ReplicationState = replStatus.ReplicationState()
ss.MasterLogFile = replStatus.GetMasterLogFile()
ss.MasterLogPos = replStatus.GetReadMasterLogPos()
ss.LastIOErrno = replStatus.GetLastIOErrno()
ss.LastSQLErrno = replStatus.GetLastSQLErrno()
}

// SemiSyncState contains semi sync host settings
Expand Down

0 comments on commit a073537

Please sign in to comment.