From a42ba14851504e26bf4a9d7e48ff64705a352568 Mon Sep 17 00:00:00 2001 From: Pranit Bauva Date: Wed, 5 Apr 2023 21:46:26 +0530 Subject: [PATCH] doc: pass ctx in example for infinite wait time (#2540) Co-authored-by: Monkey --- example_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example_test.go b/example_test.go index 3f336f48..84f0ba91 100644 --- a/example_test.go +++ b/example_test.go @@ -227,7 +227,7 @@ func ExampleClient_BLPop() { panic(err) } - // use `rdb.BLPop(0, "queue")` for infinite waiting time + // use `rdb.BLPop(ctx, 0, "queue")` for infinite waiting time result, err := rdb.BLPop(ctx, 1*time.Second, "queue").Result() if err != nil { panic(err)