fix panic: unaligned 64-bit atomic operation on Linux@armv7

This commit is contained in:
chenlong348 2022-08-15 10:13:37 +08:00
parent c4d78d52f8
commit bd3b88b933
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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 {