mirror of
https://github.com/pgsty/minio.git
synced 2026-11-01 13:22:02 +03:00
Preserve maintenance timeout behavior and prepare SILO 20261026
Signed-off-by: Feng Ruohang <rh@vonng.com>
This commit is contained in:
@@ -344,8 +344,7 @@ func (c *Subroute) newMuxClient(ctx context.Context) (*muxClient, error) {
|
||||
|
||||
// Request allows to do a single remote request.
|
||||
// 'req' will not be used after the call and caller can reuse.
|
||||
// If no deadline is set on ctx, a 1-minute deadline will be added unless
|
||||
// WithoutDefaultTimeout was requested.
|
||||
// If no deadline is set on ctx, a 1-minute deadline will be added.
|
||||
func (c *Connection) Request(ctx context.Context, h HandlerID, req []byte) ([]byte, error) {
|
||||
if !h.valid() {
|
||||
return nil, ErrUnknownHandler
|
||||
@@ -371,8 +370,7 @@ func (c *Connection) Request(ctx context.Context, h HandlerID, req []byte) ([]by
|
||||
|
||||
// Request allows to do a single remote request.
|
||||
// 'req' will not be used after the call and caller can reuse.
|
||||
// If no deadline is set on ctx, a 1-minute deadline will be added unless
|
||||
// WithoutDefaultTimeout was requested.
|
||||
// If no deadline is set on ctx, a 1-minute deadline will be added.
|
||||
func (c *Subroute) Request(ctx context.Context, h HandlerID, req []byte) ([]byte, error) {
|
||||
if !h.valid() {
|
||||
return nil, ErrUnknownHandler
|
||||
|
||||
Reference in New Issue
Block a user