mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
SchedulerSv1 Reload with utils.CGREventWithArgDispatcher as arguments
This commit is contained in:
@@ -34,7 +34,7 @@ type SchedulerSv1 struct {
|
||||
|
||||
// Reload reloads scheduler instructions
|
||||
func (schdSv1 *SchedulerSv1) Reload(arg *utils.CGREventWithArgDispatcher, reply *string) error {
|
||||
return schdSv1.schdS.V1Reload(utils.EmptyString, reply)
|
||||
return schdSv1.schdS.V1Reload(arg, reply)
|
||||
}
|
||||
|
||||
func (schdSv1 *SchedulerSv1) Ping(ign *utils.CGREventWithArgDispatcher, reply *string) error {
|
||||
|
||||
@@ -38,7 +38,7 @@ func (schdS *SchedulerS) Call(serviceMethod string, args interface{}, reply inte
|
||||
}
|
||||
|
||||
// V1ReloadScheduler reloads the scheduler tasks
|
||||
func (schdS *SchedulerS) V1Reload(_ string, reply *string) (err error) {
|
||||
func (schdS *SchedulerS) V1Reload(_ *utils.CGREventWithArgDispatcher, reply *string) (err error) {
|
||||
sched := schdS.srvMngr.GetScheduler()
|
||||
if sched == nil {
|
||||
return errors.New(utils.SchedulerNotRunningCaps)
|
||||
|
||||
Reference in New Issue
Block a user