devflag 분리 / gocommon으로 패키지 변경
This commit is contained in:
4
redis.go
4
redis.go
@ -1,4 +1,4 @@
|
||||
package common
|
||||
package gocommon
|
||||
|
||||
import (
|
||||
"context"
|
||||
@ -20,7 +20,7 @@ func newRedisClient(uri string, dbidxoffset int) *redis.Client {
|
||||
}
|
||||
|
||||
func NewRedisClient(uri string, dbidx int) (*redis.Client, error) {
|
||||
if !*Devflag {
|
||||
if !*devflag {
|
||||
return newRedisClient(uri, dbidx), nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user