aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-10-08 21:19:38 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-10-08 21:19:38 -0700
commit0cdfb8722d6278c9adc0a919baf803906d4c8927 (patch)
tree9353cd8a70224959a242edfe00920e5be75b15f2 /src/core/lib
parent922260656a288d302016d044ff1572be5dc61b8c (diff)
Const correctness
Diffstat (limited to 'src/core/lib')
-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_;