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