Skip to content

Commit

Permalink
core/services/relay: fix backwards maps.Copy (#10745)
Browse files Browse the repository at this point in the history
* core/services/relay: fix backwards maps.Copy

* fix Base health report
  • Loading branch information
jmank88 authored Sep 21, 2023
1 parent 446615c commit e1896a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/services/relay/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ func (r *relayerAdapter) Ready() (err error) {

func (r *relayerAdapter) HealthReport() map[string]error {
hr := make(map[string]error)
maps.Copy(r.Relayer.HealthReport(), hr)
maps.Copy(r.RelayerExt.HealthReport(), hr)
maps.Copy(hr, r.Relayer.HealthReport())
maps.Copy(hr, r.RelayerExt.HealthReport())
return hr
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (p *Base) HealthReport() map[string]error {
p.mu.RLock()
defer p.mu.RUnlock()
for _, s := range p.srvs {
maps.Copy(s.HealthReport(), hr)
maps.Copy(hr, s.HealthReport())
}
return hr
}
Expand Down

0 comments on commit e1896a8

Please sign in to comment.