From 0cdfb8722d6278c9adc0a919baf803906d4c8927 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Sun, 8 Oct 2017 21:19:38 -0700 Subject: Const correctness --- src/core/lib/transport/bdp_estimator.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/lib/transport/bdp_estimator.h b/src/core/lib/transport/bdp_estimator.h index 6b1ebb5f67..d8f5f8ba95 100644 --- a/src/core/lib/transport/bdp_estimator.h +++ b/src/core/lib/transport/bdp_estimator.h @@ -38,11 +38,11 @@ class BdpEstimator { ~BdpEstimator(); // Returns true if a reasonable estimate could be obtained - bool EstimateBdp(int64_t *estimate_out) { + bool EstimateBdp(int64_t *estimate_out) const { *estimate_out = estimate_; return true; } - bool EstimateBandwidth(double *bw_out) { + bool EstimateBandwidth(double *bw_out) const { *bw_out = bw_est_; return true; } @@ -50,7 +50,7 @@ class BdpEstimator { void AddIncomingBytes(int64_t num_bytes) { accumulator_ += num_bytes; } // Returns true if the user should schedule a ping - bool NeedPing(grpc_exec_ctx *exec_ctx) { + bool NeedPing(grpc_exec_ctx *exec_ctx) const { switch (ping_state_) { case PingState::UNSCHEDULED: return grpc_exec_ctx_now(exec_ctx) >= next_ping_scheduled_; -- cgit v1.2.3