public void update(long bytes) {
        if (bytes > currentVolume) {
            semaphore.release(bytes - currentVolume);
        } else {
            semaphore.acquire(currentVolume - bytes);
        }
        currentVolume = bytes;
    }
Update the current volume of network traffic.
Note: this method is not thread-safe.
s3stream/src/main/java/com/automq/stream/s3/operator/TrafficVolumeLimiter.java