Skip to content

Commit

Permalink
add comments and fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Schmidt committed Aug 23, 2024
1 parent c18a84f commit a20a91f
Show file tree
Hide file tree
Showing 6 changed files with 531 additions and 148 deletions.
11 changes: 6 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ linters-settings:
allow:
- $gostd
- github.com/aerospike/avs-client-go/protos
- 'github.com/stretchr/testify/assert'

linters:
disable-all: true
Expand Down Expand Up @@ -69,8 +70,11 @@ run:
# skip-files:
# - sample

# issues:
# exclude-rules:
issues:
exclude-rules:
- path: '(.+)test\.go'
linters:
- govet # Test code field alignment for sake of space is not a concern
# - path: dir/sample\.go
# linters:
# - lll # Test code is allowed to have long lines
Expand All @@ -80,9 +84,6 @@ run:
# - path: dir/sample\.go
# linters:
# - dupl # Test code is allowed to have duplicate code
# - path: '(.+)test\.go'
# linters:
# - govet # Test code field alignment for sake of space is not a concern
# - linters:
# - lll
# source: "// "
7 changes: 6 additions & 1 deletion channel_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,12 @@ func (cp *channelProvider) getUpdatedEndpoints(ctx context.Context) map[uint64]*
}

if !cp.checkAndSetClusterID(clusterID.GetId()) {
logger.DebugContext(ctx, "old cluster ID found, skipping channel discovery", slog.Uint64("clusterID", clusterID.GetId()))
logger.DebugContext(
ctx,
"old cluster ID found, skipping channel discovery",
slog.Uint64("clusterID", clusterID.GetId()),
)

return
}

Expand Down
Loading

0 comments on commit a20a91f

Please sign in to comment.