aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rpc.go2
-rw-r--r--server.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/rpc.go b/rpc.go
index 9d18d16..1f3c877 100644
--- a/rpc.go
+++ b/rpc.go
@@ -22,7 +22,7 @@ func init() {
rpc.HandleHTTP()
}
-func RegisterRPC(s *Server) error {
+func registerRPC(s *Server) error {
return rpc.Register(&GoXY{s})
}
diff --git a/server.go b/server.go
index 638039b..e1618db 100644
--- a/server.go
+++ b/server.go
@@ -60,7 +60,7 @@ func NewServer(dataFile, listenWWW, listenTLS, listenRPC string) (*Server, error
if dataFile != "" {
server.Load(dataFile)
}
- RegisterRPC(server)
+ registerRPC(server)
http.Handle("/debug/route", server)
return server, server.UpdateMux()
}