Skip to content

Commit

Permalink
feat: Changing order for go and defer
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
  • Loading branch information
ViBiOh committed Jun 24, 2024
1 parent 20f2f31 commit 29ad429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/goweb/goweb.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func main() {
clients, err := newClients(ctx, config)
logger.FatalfOnErr(ctx, err, "client")

defer clients.Close(ctx)
go clients.Start()
defer clients.Close(ctx)

services := newServices(config)
port := newPort(config, clients)
Expand Down

0 comments on commit 29ad429

Please sign in to comment.