Skip to content

Commit

Permalink
Pointer receiver everywhere for historyEngineImpl
Browse files Browse the repository at this point in the history
Otherwise IDE complains in every method of the historyEngineImpl.
Go recommendation: https://go.dev/doc/faq#methods_on_values_or_pointers
  • Loading branch information
dkrotx committed Jan 3, 2025
1 parent d81979a commit 2ed12f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (e *historyEngineImpl) unlockProcessingForFailover() {
e.timerProcessor.UnlockTaskProcessing()
}

func (e historyEngineImpl) failoverPredicate(shardNotificationVersion int64, nextDomain *cache.DomainCacheEntry, action func()) {
func (e *historyEngineImpl) failoverPredicate(shardNotificationVersion int64, nextDomain *cache.DomainCacheEntry, action func()) {
domainFailoverNotificationVersion := nextDomain.GetFailoverNotificationVersion()
domainActiveCluster := nextDomain.GetReplicationConfig().ActiveClusterName

Expand Down

0 comments on commit 2ed12f4

Please sign in to comment.