Rename stuttered service names and make them appropriate

This commit is contained in:
Harshavardhana
2015-07-05 10:19:23 -07:00
parent 18a8891a15
commit a3ccb9d405
3 changed files with 15 additions and 15 deletions

View File

@@ -117,9 +117,9 @@ func getAPIHandler(conf api.Config) (http.Handler, api.Minio) {
func getRPCHandler() http.Handler {
s := rpc.NewServer()
s.RegisterJSONCodec()
s.RegisterService(new(rpc.VersionService), "")
s.RegisterService(new(rpc.GetSysInfoService), "")
s.RegisterService(new(rpc.GetDiskInfoService), "")
s.RegisterService(new(rpc.VersionService), "Version")
s.RegisterService(new(rpc.SysInfoService), "SysInfo")
s.RegisterService(new(rpc.DiskInfoService), "DiskInfo")
// Add new services here
return registerRPC(router.NewRouter(), s)
}