Skip to content

Commit

Permalink
Fix getting started example code (#2324)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Oct 25, 2021
1 parent 36b444a commit 0f0bd26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website_docs/getting-started.md
Expand Up @@ -53,12 +53,12 @@ func NewApp(r io.Reader, l *log.Logger) *App {
// Run starts polling users for Fibonacci number requests and writes results.
func (a *App) Run(ctx context.Context) error {
for {
n, err := a.Poll()
n, err := a.Poll(ctx)
if err != nil {
return err
}

a.Write(n)
a.Write(ctx, n)
}
}

Expand Down

0 comments on commit 0f0bd26

Please sign in to comment.