fix #21

Merged
milano15662 merged 1 commits from develop into master 2022-03-25 23:24:34 +00:00
2 changed files with 7 additions and 3 deletions
Showing only changes of commit d9484e28ca - Show all commits

View File

@ -42,7 +42,10 @@ func NewClient(config Config) (*Client, error) {
} }
// Init schedule // Init schedule
initSchedule() if config.IsScheduled {
initSchedule()
}
return client, nil return client, nil
} }

View File

@ -4,6 +4,7 @@ import "github.com/Selly-Modules/natsio"
// Config ... // Config ...
type Config struct { type Config struct {
Redis RedisCfg Redis RedisCfg
Nats natsio.Config Nats natsio.Config
IsScheduled bool
} }