Skip to content

Commit

Permalink
Multi only active if synced.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Mar 4, 2024
1 parent c4ef742 commit d79b541
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion multi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (s *Service) recheck(ctx context.Context, forceUpdate bool) {
}
}
switch {
case client.IsActive():
case client.IsSynced():
s.activateClient(ctx, client)
default:
s.deactivateClient(ctx, client)
Expand Down
4 changes: 2 additions & 2 deletions multi/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func New(ctx context.Context, params ...Parameter) (consensusclient.Service, err
inactiveClients := make([]consensusclient.Service, 0, len(parameters.clients))
for _, client := range parameters.clients {
switch {
case client.IsActive():
case client.IsSynced():
activeClients = append(activeClients, client)
setProviderStateMetric(ctx, client.Address(), "active")
default:
Expand All @@ -84,7 +84,7 @@ func New(ctx context.Context, params ...Parameter) (consensusclient.Service, err
continue
}
switch {
case client.IsActive():
case client.IsSynced():
activeClients = append(activeClients, client)
setProviderStateMetric(ctx, client.Address(), "active")
default:
Expand Down

0 comments on commit d79b541

Please sign in to comment.