Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWhitehead committed May 17, 2024
1 parent 13e5153 commit fff6944
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private AsyncAppendingQueue(
lock = new ReentrantLock();
}

synchronized AsyncAppendingQueue<T> append(ApiFuture<T> value) throws ShortCircuitException {
AsyncAppendingQueue<T> append(ApiFuture<T> value) throws ShortCircuitException {
lock.lock();
try {
checkState(state.isOpen(), "already closed");
Expand Down Expand Up @@ -124,7 +124,7 @@ T await() {
}

@Override
public synchronized void close() {
public void close() {
lock.lock();
try {
if (!state.isOpen()) {
Expand Down

0 comments on commit fff6944

Please sign in to comment.