debug server fixes
This commit is contained in:
parent
f9cb0c2dbb
commit
85cf6b8332
@ -15,6 +15,10 @@ import (
|
|||||||
|
|
||||||
const CName = "net.rpc.debugserver"
|
const CName = "net.rpc.debugserver"
|
||||||
|
|
||||||
|
func New() DebugServer {
|
||||||
|
return &debugServer{}
|
||||||
|
}
|
||||||
|
|
||||||
type DebugServer interface {
|
type DebugServer interface {
|
||||||
app.ComponentRunnable
|
app.ComponentRunnable
|
||||||
drpc.Mux
|
drpc.Mux
|
||||||
@ -46,7 +50,10 @@ func (d *debugServer) Name() (name string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (d *debugServer) Run(ctx context.Context) (err error) {
|
func (d *debugServer) Run(ctx context.Context) (err error) {
|
||||||
lis, err := net.Listen("tpc", d.config.ListenAddr)
|
if d.config.ListenAddr == "" {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
lis, err := net.Listen("tcp", d.config.ListenAddr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user