Browse Source

Merge pull request #115 from wagslane/lw_maxint

maxint
pull/117/head
Lane Wagner 3 years ago
committed by GitHub
parent
commit
3a26b2c800
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      internal/dispatcher/dispatcher.go

+ 1
- 1
internal/dispatcher/dispatcher.go View File

@ -43,7 +43,7 @@ func (d *Dispatcher) Dispatch(err error) error {
// AddSubscriber -
func (d *Dispatcher) AddSubscriber() (<-chan error, chan<- struct{}) {
const maxRand = math.MaxInt64
const maxRand = math.MaxInt
const minRand = 0
id := rand.Intn(maxRand-minRand) + minRand


Loading…
Cancel
Save