Skip to content

Commit

Permalink
[CLIENT-3022] Close the ticker
Browse files Browse the repository at this point in the history
  • Loading branch information
khaf committed Jul 18, 2024
1 parent 399a4e8 commit dd4e756
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Aerospike Client Go](https://goreportcard.com/badge/github.com/aerospike/aerospike-client-go/v7)](https://goreportcard.com/report/github.com/aerospike/aerospike-client-go/v7)
[![Godoc](https://godoc.org/github.com/aerospike/aerospike-client-go/v7?status.svg)](https://pkg.go.dev/github.com/aerospike/aerospike-client-go/v7)
[![Tests](https://github.com/aerospike/aerospike-client-go/actions/workflows/build.yml/badge.svg?branch=v7&event=push)](github.com/aerospike/aerospike-client-go/actions)

An Aerospike library for Go.

Expand Down
2 changes: 1 addition & 1 deletion proxy_auth_interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (interceptor *authInterceptor) tokenRefresher() {
// provide 5 secs of buffer before expiry due to network latency
wait := interceptor.expiry.Sub(time.Now()) - 5*time.Second
ticker := time.NewTicker(wait)
// defer ticker.Close()
defer ticker.Stop()

for {
ticker.Reset(wait)
Expand Down

0 comments on commit dd4e756

Please sign in to comment.