Skip to content

Commit

Permalink
Merge branch 'bazel-build-supporting' of github.com:ashione/yalanting…
Browse files Browse the repository at this point in the history
…libs into bazel-build-supporting

Conflicts:
	BUILD.bazel
  • Loading branch information
林濯 committed Mar 1, 2024
2 parents 75c57b4 + c24c828 commit 03f5bbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/ylt/coro_io/rate_limiter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class rate_limiter {
do_set_rate(permitsPerSecond, current_time_mills());
}

virtual ~rate_limiter() {}

protected:
virtual void do_set_rate(
double permitsPerSecond,
Expand All @@ -67,6 +69,9 @@ class rate_limiter {
};

class abstract_smooth_rate_limiter : public rate_limiter {
public:
virtual ~abstract_smooth_rate_limiter() {}

protected:
virtual void do_set_rate(double permits_per_second,
double stable_internal_micros) = 0;
Expand Down

0 comments on commit 03f5bbd

Please sign in to comment.