Skip to content

Commit

Permalink
service/rpccommon: correct wrong comments (#3397)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarzilli authored May 31, 2023
1 parent 5c711f8 commit 6d7263f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions service/rpccommon/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 6d7263f

Please sign in to comment.