Skip to content

Commit

Permalink
fix(): Increase refresh interval
Browse files Browse the repository at this point in the history
Increased the refresh interval from 2 mins to 4 mins.
Added a retry timer of 15 sec in the refresh path
to retry connection request if the previous one fails.

Signed-off-by: Bharath Horatti <bharath@aveshasystems.com>
  • Loading branch information
bharath-avesha committed Apr 24, 2024
1 parent e894ed0 commit 1a909bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func main() {
client.WithDialOptions(dialOptions...),
)

nsmClient = retry.NewClient(nsmClient, retry.WithTryTimeout(c.RequestTimeout))
nsmClient = retry.NewClient(nsmClient, retry.WithTryTimeout(c.RequestTimeout), retry.WithInterval(5*time.Second))

// ********************************************************************************
// Configure signal handling context
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1a909bd

Please sign in to comment.