fix panic: unaligned 64-bit atomic operation on Linux@armv7
This commit is contained in:
parent
c4d78d52f8
commit
bd3b88b933
|
@ -48,6 +48,10 @@ var logger = logging.Logger("ipfshttp")
|
|||
// on-demand requests against the configured IPFS daemom
|
||||
// (such as a pin request).
|
||||
type Connector struct {
|
||||
updateMetricCount uint64
|
||||
|
||||
ipfsPinCount int64
|
||||
|
||||
ctx context.Context
|
||||
cancel func()
|
||||
|
||||
|
@ -59,10 +63,6 @@ type Connector struct {
|
|||
|
||||
client *http.Client // client to ipfs daemon
|
||||
|
||||
updateMetricCount uint64
|
||||
|
||||
ipfsPinCount int64
|
||||
|
||||
shutdownLock sync.Mutex
|
||||
shutdown bool
|
||||
wg sync.WaitGroup
|
||||
|
|
|
@ -27,16 +27,16 @@ var logger = logging.Logger("optracker")
|
|||
|
||||
// OperationTracker tracks and manages all inflight Operations.
|
||||
type OperationTracker struct {
|
||||
pinningCount int64
|
||||
pinErrorCount int64
|
||||
pinQueuedCount int64
|
||||
|
||||
ctx context.Context // parent context for all ops
|
||||
pid peer.ID
|
||||
peerName string
|
||||
|
||||
mu sync.RWMutex
|
||||
operations map[api.Cid]*Operation
|
||||
|
||||
pinningCount int64
|
||||
pinErrorCount int64
|
||||
pinQueuedCount int64
|
||||
}
|
||||
|
||||
func (opt *OperationTracker) String() string {
|
||||
|
|
Loading…
Reference in New Issue
Block a user