Skip to content

Commit bfc8e1b

Browse files
committed
A few spread fixes for log functions
1 parent dc6be6e commit bfc8e1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dispatcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func (d *Dispatcher) WaitUntilIdle() {
182182
}
183183

184184
func (d *Dispatcher) log(format string, a ...interface{}) (n int, err error) {
185-
return d.dispatchLogFn(format, a)
185+
return d.dispatchLogFn(format, a...)
186186
}
187187

188188
// pulls a job from the job queue and adds it to the worker's job queue - a worker will grab it in the worker logic

worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (w Worker) stop() {
111111

112112
func (w Worker) log(format string, a ...interface{}) (n int, err error) {
113113
if w.logFn != nil {
114-
return w.logFn(format, a)
114+
return w.logFn(format, a...)
115115
}
116116

117117
return 0, nil

0 commit comments

Comments
 (0)