SchedulerSv1 Reload with utils.CGREventWithArgDispatcher as arguments

This commit is contained in:
DanB
2019-04-24 13:48:51 +02:00
parent e7c88427dd
commit a350907892
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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)