Skip to content

Commit d77e826

Browse files
authored
fix readme example
1 parent e28aed3 commit d77e826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ for {
6868
// or we can use a timeout context
6969
for {
7070
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
71-
ev, err := s.GetEvent(ctx)
71+
ev, err := streamer.GetEvent(ctx)
7272
cancel()
7373

7474
if err == context.DeadlineExceeded {

0 commit comments

Comments
 (0)