mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated DispatcherH register API
This commit is contained in:
committed by
Dan Christian Bogos
parent
ef84af834c
commit
626b8b2404
@@ -32,6 +32,7 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/cgrates/cgrates/dispatcherh"
|
||||
"github.com/cgrates/cgrates/loaders"
|
||||
|
||||
v1 "github.com/cgrates/cgrates/apier/v1"
|
||||
@@ -504,7 +505,9 @@ func main() {
|
||||
|
||||
// Rpc/http server
|
||||
server := utils.NewServer()
|
||||
|
||||
if len(cfg.HTTPCfg().DispatchersRegistrarURL) != 0 {
|
||||
server.RegisterHttpFunc(cfg.HTTPCfg().DispatchersRegistrarURL, dispatcherh.Registar)
|
||||
}
|
||||
if *httpPprofPath != "" {
|
||||
go server.RegisterProfiler(*httpPprofPath)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user