Skip to content

Commit

Permalink
bridgestate: deduplicate on remote name
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
  • Loading branch information
sumnerevans committed Aug 28, 2024
1 parent fd89457 commit 5f49ca6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bridge/status/bridgestate.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ func (pong *BridgeState) SendHTTP(ctx context.Context, url, token string) error
func (pong *BridgeState) ShouldDeduplicate(newPong *BridgeState) bool {
return pong != nil &&
pong.StateEvent == newPong.StateEvent &&
pong.RemoteName == newPong.RemoteName &&
ptr.Val(pong.RemoteProfile) == ptr.Val(newPong.RemoteProfile) &&
pong.Error == newPong.Error &&
maps.EqualFunc(pong.Info, newPong.Info, reflect.DeepEqual) &&
Expand Down

0 comments on commit 5f49ca6

Please sign in to comment.