service/rpccommon: correct wrong comments (#3397)
This commit is contained in:
parent
5c711f8d09
commit
6d7263f6f9
@ -32,7 +32,7 @@ import (
|
|||||||
type ServerImpl struct {
|
type ServerImpl struct {
|
||||||
// config is all the information necessary to start the debugger and server.
|
// config is all the information necessary to start the debugger and server.
|
||||||
config *service.Config
|
config *service.Config
|
||||||
// listener is used to serve HTTP.
|
// listener is used to serve JSON-RPC.
|
||||||
listener net.Listener
|
listener net.Listener
|
||||||
// stopChan is used to stop the listener goroutine.
|
// stopChan is used to stop the listener goroutine.
|
||||||
stopChan chan struct{}
|
stopChan chan struct{}
|
||||||
@ -103,9 +103,8 @@ func (s *ServerImpl) Stop() error {
|
|||||||
return s.debugger.Detach(kill)
|
return s.debugger.Detach(kill)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run starts a debugger and exposes it with an HTTP server. The debugger
|
// Run starts a debugger and exposes it with an JSON-RPC server. The debugger
|
||||||
// itself can be stopped with the `detach` API. Run blocks until the HTTP
|
// itself can be stopped with the `detach` API.
|
||||||
// server stops.
|
|
||||||
func (s *ServerImpl) Run() error {
|
func (s *ServerImpl) Run() error {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user