mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
Layered rpc-client implementation (#2512)
This commit is contained in:
committed by
Harshavardhana
parent
7e3e24b394
commit
bda6bcd5be
@@ -88,8 +88,8 @@ func (s *storageServer) MakeVolHandler(args *GenericVolArgs, reply *GenericReply
|
||||
}
|
||||
|
||||
// ListVolsHandler - list vols handler is rpc wrapper for ListVols operation.
|
||||
func (s *storageServer) ListVolsHandler(token *string, reply *ListVolsReply) error {
|
||||
if !isRPCTokenValid(*token) {
|
||||
func (s *storageServer) ListVolsHandler(args *GenericArgs, reply *ListVolsReply) error {
|
||||
if !isRPCTokenValid(args.Token) {
|
||||
return errors.New("Invalid token")
|
||||
}
|
||||
vols, err := s.storage.ListVols()
|
||||
|
||||
Reference in New Issue
Block a user