Skip to content

Commit

Permalink
replace MoreExecutors.directExecutor() with executor() function
Browse files Browse the repository at this point in the history
  • Loading branch information
krishna-veni committed Nov 11, 2022
1 parent 57f38d1 commit 4e0af7c
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.ListeningExecutorService;
import com.google.common.util.concurrent.MoreExecutors;

import java.io.IOException;
import java.net.URI;
Expand Down Expand Up @@ -127,7 +126,7 @@ public ListenableFuture<Set<URI>> apply(Void ignored) throws Exception
return schedule(task);
}
}
}, MoreExecutors.directExecutor());
}, executor());
}

@Override
Expand All @@ -143,7 +142,7 @@ public ListenableFuture<Void> apply(Void ignored) throws Exception
{
return request.allocate();
}
}, MoreExecutors.directExecutor()),
}, executor()),
new AsyncFunction<Void, Set<Checksum>>()
{
@Override
Expand All @@ -156,6 +155,6 @@ public ListenableFuture<Set<Checksum>> apply(Void ignored) throws Exception
return schedule(task);
}
}
}, MoreExecutors.directExecutor());
}, executor());
}
}

0 comments on commit 4e0af7c

Please sign in to comment.