-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactor comments in
redis.go
file
- Remove `deadcode` and `depguard` linters from `.golangci.yml` - Add `varcheck` linter to `.golangci.yml` - Update comments in `redis.go` file: - Remove comment `// NewWorker for struc` - Add comment explaining `NewWorker` function and its responsibilities - Update comment explaining the initialization of Redis client in `NewWorker` function - Update comment explaining the condition for initializing Redis client in `NewWorker` function - Update comment explaining the initialization of Redis client with sentinel in `NewWorker` function - Update comment explaining the condition for initializing Redis client with sentinel in `NewWorker` function - Remove unnecessary code for initializing Redis client in `NewWorker` function Signed-off-by: Bo-Yi Wu <[email protected]>
- Loading branch information
Showing
2 changed files
with
27 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters