mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-05 15:33:11 +00:00
fix: change rpc endpoint to match nwaku
This commit is contained in:
parent
c3e4262475
commit
d872b28d8f
@ -299,6 +299,8 @@ func Execute(options Options) {
|
||||
rpcServer.Start()
|
||||
}
|
||||
|
||||
utils.Logger().Info("Node setup complete")
|
||||
|
||||
// Wait for a SIGINT or SIGTERM signal
|
||||
ch := make(chan os.Signal, 1)
|
||||
signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM)
|
||||
|
||||
@ -72,7 +72,7 @@ func NewWakuRpc(node *node.WakuNode, address string, port int, enableAdmin bool,
|
||||
}
|
||||
|
||||
mux := http.NewServeMux()
|
||||
mux.HandleFunc("/jsonrpc", func(w http.ResponseWriter, r *http.Request) {
|
||||
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
t := time.Now()
|
||||
s.ServeHTTP(w, r)
|
||||
wrpc.log.Infof("RPC request at %s took %s", r.URL.Path, time.Since(t))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user