Skip to content

Commit

Permalink
Increasing timeouts for nats response.
Browse files Browse the repository at this point in the history
  • Loading branch information
can1357 committed Mar 13, 2024
1 parent 2784128 commit 2131a5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions autonats/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ func StartServer(opts Options) (srv *Server, err error) {

// Try messaging the jetstream API up to 5 times
var jserr error
for i := 0; i < 5; i++ {
_, jserr = conn.Request("$JS.API.INFO", nil, 100*time.Millisecond)
for i := 1; i <= 10; i++ {
_, jserr = conn.Request("$JS.API.INFO", nil, time.Duration(i*100)*time.Millisecond)
if jserr == nil {
break
}
Expand Down
2 changes: 1 addition & 1 deletion revision/self.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

var (
VersionString = "v0.3" // Only updated for major/minor releases.
VersionString = "v0.4" // Only updated for major/minor releases.
)

func getCommit() string {
Expand Down

0 comments on commit 2131a5c

Please sign in to comment.