Skip to content

Commit

Permalink
see prev commit for the great news - prep for v0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kataras committed Jul 11, 2019
1 parent 4de9b66 commit 6031b3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func debugEnabled() bool {
return debugPrinter != nil
}

// Debugf prints debug messages to the printer defined on `EnableDebug`.
// Runs only on debug mode.
func Debugf(format string, args ...interface{}) {
if !debugEnabled() {
return
Expand Down Expand Up @@ -85,7 +87,9 @@ func Debugf(format string, args ...interface{}) {

type dargs []interface{}

// Runs only on debug.
// DebugEach prints debug messages for each of "mapOrSlice" elements
// to the printer defined on `EnableDebug`.
// Runs only on debug mode.
// Usage:
// DebugEach(staticFields, func(idx int, f reflect.Value) {
// fval := f.Interface()
Expand Down
3 changes: 1 addition & 2 deletions stackexchange/redis/stackexchange_redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,7 @@ func (exc *StackExchange) Publish(msg neffos.Message) bool {
cmd := radix.FlatCmd(nil, "PUBLISH", channel, b)
err := exc.pool.Do(cmd)
if err != nil {
panic(err) // TODO: remove this.
// return false
return false
}

return true
Expand Down

0 comments on commit 6031b3f

Please sign in to comment.