Skip to content

Commit

Permalink
chore(stream): move asyncsemaphore to util (#2173)
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Han <[email protected]>
  • Loading branch information
superhx authored Nov 22, 2024
1 parent e9bbf7a commit d7b73f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.automq.stream.s3.metrics.S3StreamMetricsManager;
import com.automq.stream.s3.metrics.stats.StorageOperationStats;
import com.automq.stream.s3.network.ThrottleStrategy;
import com.automq.stream.utils.AsyncSemaphore;
import com.automq.stream.utils.FutureUtil;
import com.automq.stream.utils.Time;
import com.automq.stream.utils.threads.EventLoop;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* by the Apache License, Version 2.0
*/

package com.automq.stream.s3.cache.blockcache;
package com.automq.stream.utils;

import com.automq.stream.utils.threads.EventLoop;

Expand All @@ -21,7 +21,7 @@
import java.util.concurrent.CompletableFuture;
import java.util.function.Supplier;

class AsyncSemaphore {
public class AsyncSemaphore {
private static final Logger LOGGER = LoggerFactory.getLogger(AsyncSemaphore.class);
private final Queue<AsyncSemaphoreTask> tasks = new LinkedList<>();
private long permits;
Expand Down

0 comments on commit d7b73f0

Please sign in to comment.