Skip to content
Snippets Groups Projects
Commit a8199d5f authored by Yordan Kinkov's avatar Yordan Kinkov
Browse files

Return proper receiver error in events listener

parent 47c6e394
No related branches found
No related tags found
No related merge requests found
......@@ -34,11 +34,7 @@ func New(addr, subject string) (*Client, error) {
}
func (c *Client) Start(ctx context.Context) error {
if err := c.events.StartReceiver(ctx, handler); err != nil {
return err
}
return ctx.Err()
return c.events.StartReceiver(ctx, handler)
}
func (c *Client) Close(ctx context.Context) error {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment