simplified code
This commit is contained in:
parent
29951efed5
commit
c2d4f624af
@ -694,9 +694,9 @@ func (this *Inspector) getMasterConnectionConfig() (applierConfig *mysql.Connect
|
|||||||
|
|
||||||
func (this *Inspector) getReplicationLag() (replicationLag time.Duration, err error) {
|
func (this *Inspector) getReplicationLag() (replicationLag time.Duration, err error) {
|
||||||
replicationLagQuery := this.migrationContext.GetReplicationLagQuery()
|
replicationLagQuery := this.migrationContext.GetReplicationLagQuery()
|
||||||
lag, err := mysql.GetReplicationLag(
|
replicationLag, err = mysql.GetReplicationLag(
|
||||||
this.migrationContext.InspectorConnectionConfig,
|
this.migrationContext.InspectorConnectionConfig,
|
||||||
replicationLagQuery,
|
replicationLagQuery,
|
||||||
)
|
)
|
||||||
return lag, err
|
return replicationLag, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user