Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
fixed resource manager panic (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
ortuman authored Feb 25, 2022
1 parent 2b28746 commit 414d2eb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/jackal/jackal.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,14 @@ func (j *Jackal) Run() error {
}

func (j *Jackal) initCluster(cfg ClusterConfig) error {
if !cfg.IsEnabled() {
return nil
}

switch cfg.Type {
case kvClusterType:
if err := j.initKVStore(cfg.KV); err != nil {
return err
}
fallthrough

case noneClusterType:
j.memberList = memberlist.NewKVMemberList(cfg.Server.Port, j.kv, j.hk, j.logger)
j.resMng = resourcemanager.NewKVManager(j.kv, j.logger)

Expand Down

0 comments on commit 414d2eb

Please sign in to comment.