aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/http.go
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@ziggo.nl>2015-04-19 16:01:50 +0800
committerBas van Kervel <basvankervel@ziggo.nl>2015-04-19 16:01:50 +0800
commit61885aa965282d5879b9c4fbb740e96e9b680558 (patch)
tree806110414e19dd394700e35ba015cb792a853530 /rpc/http.go
parent2c229bac003b30908fd0dc0d69d35044c6cb2425 (diff)
downloaddexon-61885aa965282d5879b9c4fbb740e96e9b680558.tar.gz
dexon-61885aa965282d5879b9c4fbb740e96e9b680558.tar.zst
dexon-61885aa965282d5879b9c4fbb740e96e9b680558.zip
Don't export types/functions
Diffstat (limited to 'rpc/http.go')
-rw-r--r--rpc/http.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpc/http.go b/rpc/http.go
index 5ff4f613b..f9c646908 100644
--- a/rpc/http.go
+++ b/rpc/http.go
@@ -14,7 +14,7 @@ import (
)
var rpclogger = logger.NewLogger("RPC")
-var rpclistener *StoppableTCPListener
+var rpclistener *stoppableTCPListener
const (
jsonrpcver = "2.0"
@@ -29,7 +29,7 @@ func Start(pipe *xeth.XEth, config RpcConfig) error {
return nil // RPC service already running on given host/port
}
- l, err := NewStoppableTCPListener(fmt.Sprintf("%s:%d", config.ListenAddress, config.ListenPort))
+ l, err := newStoppableTCPListener(fmt.Sprintf("%s:%d", config.ListenAddress, config.ListenPort))
if err != nil {
rpclogger.Errorf("Can't listen on %s:%d: %v", config.ListenAddress, config.ListenPort, err)
return err
@@ -43,9 +43,9 @@ func Start(pipe *xeth.XEth, config RpcConfig) error {
opts.AllowedOrigins = []string{config.CorsDomain}
c := cors.New(opts)
- handler = NewStoppableHandler(c.Handler(JSONRPC(pipe)), l.stop)
+ handler = newStoppableHandler(c.Handler(JSONRPC(pipe)), l.stop)
} else {
- handler = NewStoppableHandler(JSONRPC(pipe), l.stop)
+ handler = newStoppableHandler(JSONRPC(pipe), l.stop)
}
go http.Serve(l, handler)