Browse Source

maxint

pull/115/head
wagslane 3 years ago
parent
commit
a792b8fba4
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