Skip to content

Commit

Permalink
Fix period value
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Grisonnet <[email protected]>
  • Loading branch information
dgrisonnet committed Oct 15, 2019
1 parent c46ca67 commit 80b8f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateways/core/stream/amqp/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (ese *AMQPEventSourceExecutor) StartEventSource(eventSource *gateways.Event
}

func getLimitedDelivery(ch *amqplib.Channel, a *amqp, delivery chan amqplib.Delivery, queue string) {
period := time.Duration(a.RatePeriod)
period := time.Duration(a.RatePeriod) * time.Second
for {
startTime := time.Now()

Expand Down

0 comments on commit 80b8f91

Please sign in to comment.