Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/phxsql
/ ApplyWriteToken
Method
ApplyWriteToken
phxsqlproxy/plugin/requestfilter/freqctrlconfig.cpp:56–58 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
54
}
55
56
bool FreqCtrlBucket::ApplyWriteToken(int count) {
57
return ApplyToken(&db_bucket_struct_.write_bucket, count);
58
}
59
60
void FreqCtrlBucket::Refill() {
61
uint32_t last_refill_time = (unsigned int) time(NULL);
Callers
1
Apply
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected