IguteChung / casbin-psql-watcher

A WatcherEX implementation for Casbin based on PostgreSQL
MIT License
8 stars 1 forks source link

Postgres connection lost #3

Open anuragsinha69 opened 2 months ago

anuragsinha69 commented 2 months ago

Hi, Postgres connection is lost for multiple PID i.e when Prefork is true i am getting

`panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xd9cef3]

goroutine 61 [running]: github.com/IguteChung/casbin-psql-watcher.(*Watcher).listenMessage(0xc0001b4c60, {0x1167558, 0xc0000a65f0}) /home/user/go/pkg/mod/github.com/!igute!chung/casbin-psql-watcher@v1.0.0/watcher.go:313 +0x593 github.com/IguteChung/casbin-psql-watcher.NewWatcherWithPool.func1() /home/user/go/pkg/mod/github.com/!igute!chung/casbin-psql-watcher@v1.0.0/watcher.go:80 +0x2b created by github.com/IguteChung/casbin-psql-watcher.NewWatcherWithPool in goroutine 1 /home/user/go/pkg/mod/github.com/!igute!chung/casbin-psql-watcher@v1.0.0/watcher.go:79 +0x1ba`

hsluoyz commented 2 months ago

@IguteChung