MCPcopy Create free account
hub / github.com/baidu/tera / LeaveFlowControlMode

Method LeaveFlowControlMode

src/quota/flow_controller.h:81–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 void LeaveFlowControlMode() {
82 std::lock_guard<std::mutex> _{mu_};
83 status_.store(FlowControlStatus::kNormal);
84 limiter_.SetLimit(std::numeric_limits<uint64_t>::max());
85 }
86
87 bool InFlowControlMode() { return status_.load() == FlowControlStatus::kFlowControlMode; }
88

Callers 2

ResetSlowdownModeMethod · 0.80
UpdateMethod · 0.80

Calls 1

SetLimitMethod · 0.45

Tested by

no test coverage detected