client: don't drop errors from client.Run()

This commit is contained in:
Tulir Asokan
2025-12-11 15:01:12 +02:00
parent d03260c4a7
commit 43b230148b
3 changed files with 42 additions and 33 deletions
+2 -2
View File
@@ -139,8 +139,8 @@ func (c *Client) Run(ctx context.Context, f func(ctx context.Context) error) (er
// handling or pool creation.
c.ctx, c.cancel = context.WithCancel(ctx)
c.log.Info("Starting")
defer c.log.Info("Closed")
c.log.Info("Client starting")
defer c.log.Info("Client closed")
// Cancel client on exit.
defer c.cancel()
defer func() {