Skip to content

Commit

Permalink
bug: error not updating properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Wil Simpson committed Dec 11, 2024
1 parent 3f51fcf commit ca6aa99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/srv/bus.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (b *busService) ResetReaderBus(ctx context.Context, request *pb.BusTarget)
var err error
builder := strings.Builder{}
for name, reader := range b.readers {
errors.Join(err, reader.Reset(ctx))
err = errors.Join(err, reader.Reset(ctx))
builder.WriteString(string(name))
builder.WriteString(", ")
}
Expand Down Expand Up @@ -79,7 +79,7 @@ func (b *busService) ResetWriterBus(ctx context.Context, request *pb.BusTarget)
var err error
builder := strings.Builder{}
for name, busCallback := range b.writerCallbacks {
errors.Join(err, busCallback())
err = errors.Join(err, busCallback())
builder.WriteString(string(name))
builder.WriteString(", ")
}
Expand Down

0 comments on commit ca6aa99

Please sign in to comment.