Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ochom committed Jun 13, 2024
1 parent 4aabae9 commit 134277d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ dev:
@air

tidy:
@go mod tidy
@go mod tidy

lint:
@echo "Running linter..."
@golangci-lint run
5 changes: 4 additions & 1 deletion src/app/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ func subscriptionHandler(c fiber.Ctx) error {
cl.joinChannel(queueName)
}()

cl.writeMessage([]byte(`{}`))
if err := cl.writeMessage([]byte(`{}`)); err != nil {
stop <- true
return
}
<-stop
})

Expand Down

0 comments on commit 134277d

Please sign in to comment.