MCPcopy Create free account
hub / github.com/Tencent/phxsql / ApplyReadToken

Method ApplyReadToken

phxsqlproxy/plugin/requestfilter/freqctrlconfig.cpp:52–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52bool FreqCtrlBucket::ApplyReadToken(int count) {
53 return ApplyToken(&db_bucket_struct_.read_bucket, count);
54}
55
56bool FreqCtrlBucket::ApplyWriteToken(int count) {
57 return ApplyToken(&db_bucket_struct_.write_bucket, count);

Callers 1

ApplyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected