mirror of
https://github.com/minio/minio.git
synced 2025-02-04 02:15:59 -05:00
parent
8e1bbd989a
commit
6fef4c21b9
@ -60,6 +60,8 @@ func (n *NetworkError) Unwrap() error {
|
|||||||
|
|
||||||
// Client - http based RPC client.
|
// Client - http based RPC client.
|
||||||
type Client struct {
|
type Client struct {
|
||||||
|
connected int32 // ref: https://golang.org/pkg/sync/atomic/#pkg-note-BUG
|
||||||
|
|
||||||
// HealthCheckFn is the function set to test for health.
|
// HealthCheckFn is the function set to test for health.
|
||||||
// If not set the client will not keep track of health.
|
// If not set the client will not keep track of health.
|
||||||
// Calling this returns true or false if the target
|
// Calling this returns true or false if the target
|
||||||
@ -84,7 +86,6 @@ type Client struct {
|
|||||||
httpClient *http.Client
|
httpClient *http.Client
|
||||||
url *url.URL
|
url *url.URL
|
||||||
newAuthToken func(audience string) string
|
newAuthToken func(audience string) string
|
||||||
connected int32
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// URL query separator constants
|
// URL query separator constants
|
||||||
|
@ -27,10 +27,10 @@ import (
|
|||||||
//
|
//
|
||||||
// A zero Group can be used if errors should not be tracked.
|
// A zero Group can be used if errors should not be tracked.
|
||||||
type Group struct {
|
type Group struct {
|
||||||
|
firstErr int64 // ref: https://golang.org/pkg/sync/atomic/#pkg-note-BUG
|
||||||
wg sync.WaitGroup
|
wg sync.WaitGroup
|
||||||
bucket chan struct{}
|
bucket chan struct{}
|
||||||
errs []error
|
errs []error
|
||||||
firstErr int64
|
|
||||||
cancel context.CancelFunc
|
cancel context.CancelFunc
|
||||||
ctxCancel <-chan struct{} // nil if no context.
|
ctxCancel <-chan struct{} // nil if no context.
|
||||||
ctxErr func() error
|
ctxErr func() error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user