Skip to content

Commit

Permalink
Audit-service add codes of config
Browse files Browse the repository at this point in the history
  • Loading branch information
doleyzi committed Apr 7, 2024
1 parent f1eb3de commit d9d70fc
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions inlong-audit/audit-service/src/main/java/channel/DataQueue.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,8 @@ public void push(StatData statDataPo) throws InterruptedException {
* @param unit
* @return
*/
public StatData pull(long timeout, TimeUnit unit) {
StatData message = null;
try {
message = queue.poll(timeout, unit);
} catch (InterruptedException ex) {
LOG.error(ex.getMessage());
}
return message;
public StatData pull(long timeout, TimeUnit unit) throws InterruptedException {
return queue.poll(timeout, unit);
}

/**
Expand Down

0 comments on commit d9d70fc

Please sign in to comment.