mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Add cache, donut tests separately - fix behavior differences
Remove priority queue, implement it using a simpler channels
This commit is contained in:
@@ -101,14 +101,14 @@ func registerRPC(mux *router.Router, s *rpc.Server) http.Handler {
|
||||
return mux
|
||||
}
|
||||
|
||||
// APIHandler api handler
|
||||
func APIHandler(conf api.Config) http.Handler {
|
||||
// getAPIHandler api handler
|
||||
func getAPIHandler(conf api.Config) http.Handler {
|
||||
mux := router.NewRouter()
|
||||
return registerOtherMiddleware(registerAPI(mux), conf)
|
||||
}
|
||||
|
||||
// RPCHandler rpc handler
|
||||
func RPCHandler() http.Handler {
|
||||
// getRPCHandler rpc handler
|
||||
func getRPCHandler() http.Handler {
|
||||
s := rpc.NewServer()
|
||||
s.RegisterJSONCodec()
|
||||
s.RegisterService(new(rpc.HelloService), "")
|
||||
|
||||
Reference in New Issue
Block a user