Skip to content

Commit

Permalink
js: shorten timeout in readme (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
wallyqs authored Jul 16, 2023
1 parent c213303 commit 4973881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jetstream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ import (

func main() {
// In the `jetstream` package, almost all API calls rely on `context.Context` for timeout/cancellation handling
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
nc, _ := nats.Connect(nats.DefaultURL)

Expand Down

0 comments on commit 4973881

Please sign in to comment.