Skip to content

Commit

Permalink
try to respect aws API req/secs limit
Browse files Browse the repository at this point in the history
  • Loading branch information
lucagrulla committed Jul 30, 2017
1 parent f84df72 commit 73391bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudwatch/cloudwatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func Tail(logGroupName *string, logStreamName *string, follow *bool, startTime *
}
}
if *follow || lastSeenTimestamp == startTimeEpoch {
ticker := time.NewTicker(time.Millisecond * 50)
ticker := time.NewTicker(time.Millisecond * 201) //AWS cloudwatch logs limit is 5tx/sec
go func() {
for range ticker.C {
logParam := params(*logGroupName, streams, lastSeenTimestamp, endTimeEpoch, grep, follow)
Expand Down

0 comments on commit 73391bb

Please sign in to comment.