Skip to content

Commit

Permalink
fix(Casbin): original redis watcher separate channel with db
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan32 committed Jun 16, 2024
1 parent 9d60b0a commit 3ed0098
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/casbin/casbin.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package casbin

import (
"fmt"
"github.com/suyuan32/simple-admin-common/config"
"log"

Expand Down Expand Up @@ -125,7 +126,7 @@ func (l CasbinConf) MustNewOriginalRedisWatcher(c config.RedisConf, f func(strin
Username: c.Username,
Password: c.Pass,
},
Channel: "/casbin",
Channel: fmt.Sprintf("%s-%d", config.RedisCasbinChannel, c.Db),
IgnoreSelf: false,
})
logx.Must(err)
Expand Down

0 comments on commit 3ed0098

Please sign in to comment.