From c2edd08c016868ecd4b9f94e4719908adc9666e8 Mon Sep 17 00:00:00 2001 From: samyfodil Date: Sat, 13 Jul 2024 13:31:46 -0500 Subject: [PATCH] fix [substrate] Add ping p2p endpoint using cr. instead of response. --- services/substrate/stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/substrate/stream.go b/services/substrate/stream.go index f1060baf..74aef58b 100644 --- a/services/substrate/stream.go +++ b/services/substrate/stream.go @@ -28,7 +28,7 @@ func (s *Service) startStream() (err error) { } s.stream.Define("ping", func(context.Context, con.Connection, command.Body) (response.Response, error) { - return cr.Response{"time": int(time.Now().Unix())}, nil + return response.Response{"time": int(time.Now().Unix())}, nil }) if err := s.stream.DefineStream(substrate.CommandHTTP, s.proxyHttp, s.tunnelHttp); err != nil {