From 896e1d07dda9f2988642de347c666b2433282b8e Mon Sep 17 00:00:00 2001 From: Pouya Vedadiyan Date: Tue, 9 Jan 2024 11:17:40 +0800 Subject: [PATCH] Update README.md Signed-off-by: Pouya Vedadiyan --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8329d9402..919450214 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,9 @@ func main() { if err != nil { log.Fatalf("failed to create client, %v", err) } - log.Fatal(c.StartReceiver(context.Background(), receive)); + if err = c.StartReceiver(context.Background(), receive); err != nil { + log.Fatalf("failed to start receiver: %v", err) + } } ```