Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap committed Sep 5, 2024
1 parent dfb1555 commit 076708f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
fmt:
go fmt ./...
.PHONY: fmt

lint:
golangci-lint run -E goimports -E godot --timeout 10m
.PHONY: lint
5 changes: 4 additions & 1 deletion multicast.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ func (b *PubSubMulticast) Pub(msg *Msg) error {
}
for _, sub := range matches {
sub.Chan <- err
b.UnSub(sub)
err = b.UnSub(sub)
if err != nil {
log.Error("unsub err", "err", err)
}
}

return err
Expand Down

0 comments on commit 076708f

Please sign in to comment.