Skip to content

Commit 9f6d819

Browse files
authored
Merge pull request go-mysql-org#716 from Trim21/patch-1
fix readme example
2 parents e28aed3 + d77e826 commit 9f6d819

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)