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)