From 6d7263f6f9049d992e63ea0edc78420fe3463989 Mon Sep 17 00:00:00 2001 From: Alessandro Arzilli Date: Wed, 31 May 2023 19:11:47 +0200 Subject: [PATCH] service/rpccommon: correct wrong comments (#3397) --- service/rpccommon/server.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/service/rpccommon/server.go b/service/rpccommon/server.go index d7916cb5c3..3a2302d83a 100644 --- a/service/rpccommon/server.go +++ b/service/rpccommon/server.go @@ -32,7 +32,7 @@ import ( type ServerImpl struct { // config is all the information necessary to start the debugger and server. config *service.Config - // listener is used to serve HTTP. + // listener is used to serve JSON-RPC. listener net.Listener // stopChan is used to stop the listener goroutine. stopChan chan struct{} @@ -103,9 +103,8 @@ func (s *ServerImpl) Stop() error { return s.debugger.Detach(kill) } -// Run starts a debugger and exposes it with an HTTP server. The debugger -// itself can be stopped with the `detach` API. Run blocks until the HTTP -// server stops. +// Run starts a debugger and exposes it with an JSON-RPC server. The debugger +// itself can be stopped with the `detach` API. func (s *ServerImpl) Run() error { var err error