From d77e8265a50b4ce18a31a39920e3fd7c85eb154d Mon Sep 17 00:00:00 2001 From: Trim21 Date: Sat, 16 Jul 2022 21:47:17 +0800 Subject: [PATCH] fix readme example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 58bfb4c69..08117c2f8 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ for { // or we can use a timeout context for { ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second) - ev, err := s.GetEvent(ctx) + ev, err := streamer.GetEvent(ctx) cancel() if err == context.DeadlineExceeded {