From e2574e37b74c25a20a388c721325c2dcfd09776c Mon Sep 17 00:00:00 2001 From: aarzilli Date: Tue, 30 May 2023 11:46:17 +0200 Subject: [PATCH] service/rpccommon: correct wrong comments This is not an HTTP server. Fixes #3315 --- 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