aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/core/lib/transport/bdp_estimator.h6
1 files 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_;