Skip to content

Commit 465683d

Browse files
authored
Merge pull request #15 from axiomhq/fix/flusher-conditional
replace f.events check with batch check
2 parents 4d0bf52 + 8999bba commit 465683d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ For more detail on how to disable the CloudWatch logging, see the [Axiom documen
4949
$ aws lambda update-function-configuration --function-name my-function \
5050
--layers arn:aws:lambda:<AWS_REGION>:694952825951:layer:axiom-extension-<ARCH>:<VERSION>
5151
```
52-
* Use the **latest** version number specified on the [Releases](https://github.com/axiomhq/axiom-lambda-extension/releases) page for the `VERSION` parameter. For example, `3`.
52+
* Use the **latest** version number specified on the [Releases](https://github.com/axiomhq/axiom-lambda-extension/releases) page for the `VERSION` parameter. For example, `4`.
5353
* For more detail on `AWS_REGION` and `ARCH` parameters, expand the table below:
5454

5555
<details>

flusher/flusher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (f *Axiom) Flush() {
7575
f.eventsLock.Unlock()
7676

7777
f.lastFlushTime = time.Now()
78-
if len(f.events) == 0 {
78+
if len(batch) == 0 {
7979
return
8080
}
8181

0 commit comments

Comments
 (0)