init: 1.0.0
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package svc
|
||||
|
||||
import (
|
||||
"github.com/hibiken/asynq"
|
||||
"github.com/perfect-panel/ppanel-server/internal/config"
|
||||
)
|
||||
|
||||
func NewAsynqClient(c config.Config) *asynq.Client {
|
||||
return asynq.NewClient(asynq.RedisClientOpt{Addr: c.Redis.Host, Password: c.Redis.Pass, DB: 5})
|
||||
}
|
||||
Reference in New Issue
Block a user