Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5e25e8eccc | |||
| 4f584726d6 |
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
func Etcd(cfg *conf.EtcdConf, cli *clientv3.Client) {
|
||||
if cfg == nil || len(cfg.Endpoints) == 0 {
|
||||
panic("Etcd endpoints is Empty!")
|
||||
return
|
||||
}
|
||||
|
||||
etcdCfg := clientv3.Config{
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/allegro/bigcache/v3"
|
||||
)
|
||||
|
||||
func Memory(opts *bigcache.Config, cli *bigcache.BigCache) {
|
||||
func Memory(cli *bigcache.BigCache, opts *bigcache.Config) {
|
||||
config := bigcache.Config{
|
||||
Shards: 1024,
|
||||
LifeWindow: 10 * time.Minute,
|
||||
|
||||
Reference in New Issue
Block a user