mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-30 07:26:46 +00:00
dispatcher: Use int32 for atomic operations to prevent crash on ARM 32bit systems (#370)
See https://github.com/golang/go/issues/599
This commit is contained in:
@@ -46,11 +46,11 @@ type Dispatcher struct {
|
||||
outbound sync.Pool
|
||||
|
||||
// MaxWorkers defines max worker ceiling
|
||||
maxWorkers int64
|
||||
maxWorkers int32
|
||||
|
||||
// Atomic values -----------------------
|
||||
// Worker counter
|
||||
count int64
|
||||
count int32
|
||||
// Dispatch status
|
||||
running uint32
|
||||
|
||||
|
||||
Reference in New Issue
Block a user