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:
Adrian Gallagher
2019-10-23 11:30:40 +11:00
committed by GitHub
parent ccfcdf26aa
commit 596be31b6a
4 changed files with 13 additions and 13 deletions

View File

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