Skip to content

Commit

Permalink
subscription channel size change
Browse files Browse the repository at this point in the history
  • Loading branch information
taylanisikdemir committed Oct 14, 2024
1 parent 25f7422 commit c9db53b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/membership/hashring.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (r *ring) notifySubscribers(msg ChangedEvent) {
select {
case ch <- &msg:
default:
r.logger.Error("subscriber notification failed", tag.Name(name))
r.logger.Warn("subscriber notification failed", tag.Name(name))

Check warning on line 216 in common/membership/hashring.go

View check run for this annotation

Codecov / codecov/patch

common/membership/hashring.go#L216

Added line #L216 was not covered by tests
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion common/rpc/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (d *FactoryImpl) GetMaxMessageSize() int {
func (d *FactoryImpl) Start(peerLister PeerLister) error {

Check warning on line 178 in common/rpc/factory.go

View check run for this annotation

Codecov / codecov/patch

common/rpc/factory.go#L178

Added line #L178 was not covered by tests
// subscribe to membership changes and notify outbounds builder for peer updates
d.peerLister = peerLister
ch := make(chan *membership.ChangedEvent, 1000)
ch := make(chan *membership.ChangedEvent, 1)
if err := d.peerLister.Subscribe(d.serviceName, factoryComponentName, ch); err != nil {
return fmt.Errorf("rpc factory failed to subscribe to membership updates: %v", err)

Check warning on line 183 in common/rpc/factory.go

View check run for this annotation

Codecov / codecov/patch

common/rpc/factory.go#L180-L183

Added lines #L180 - L183 were not covered by tests
}
Expand Down

0 comments on commit c9db53b

Please sign in to comment.