Skip to content

Commit 3b648ac

Browse files
committed
refactor: refactor and optimize codebase for improved performance
- Remove default address from options - Ignore the return value of `godump.Dump` in debug mode Signed-off-by: appleboy <[email protected]>
1 parent 39dfca3 commit 3b648ac

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

options.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ func WithDebug() Option {
149149

150150
func newOptions(opts ...Option) options {
151151
defaultOpts := options{
152-
addr: "127.0.0.1:6379",
153152
channelName: "queue",
154153
// default channel size in go-redis package
155154
channelSize: 100,

redis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func NewWorker(opts ...Option) *Worker {
4242
}
4343

4444
if w.opts.debug {
45-
godump.Dump(w.opts)
45+
_ = godump.Dump(w.opts)
4646
}
4747

4848
options := &redis.Options{

0 commit comments

Comments
 (0)