Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
guscarreon committed Mar 13, 2024
1 parent 63c5f7e commit 7eaa7ef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions backends/aerospike.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,12 @@ func generateAerospikeClientPolicy(cfg config.Aerospike) *as.ClientPolicy {
clientPolicy.User = cfg.User
clientPolicy.Password = cfg.Password

// Aerospike's connection idle deadline default is 55 seconds. If greater than zero, this
// value will override
// Connection idle timeout default is 55 seconds
if cfg.ConnIdleTimeoutSecs > 0 {
clientPolicy.IdleTimeout = time.Duration(cfg.ConnIdleTimeoutSecs) * time.Second
}

// Aerospike's default connection queue size per node is 256.
// If cfg.ConnQueueSize is greater than zero, it will override the default.
// Default connection queue size per node is 256
if cfg.ConnQueueSize > 0 {
clientPolicy.ConnectionQueueSize = cfg.ConnQueueSize
}
Expand Down

0 comments on commit 7eaa7ef

Please sign in to comment.