Skip to content

Commit

Permalink
Fixes SQS empty batch delete error (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
llinder authored May 11, 2020
1 parent 9369686 commit ea49a83
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2016-2019 The OpenZipkin Authors
* Copyright 2016-2020 The OpenZipkin Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -136,7 +136,9 @@ public void onError(Throwable t) {
}
}

delete(toDelete);
if (!toDelete.isEmpty()) {
delete(toDelete);
}
}

private DeleteMessageBatchResult delete(List<DeleteMessageBatchRequestEntry> entries) {
Expand Down

0 comments on commit ea49a83

Please sign in to comment.