-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(clustering/rpc): code clean of full sync in rpc #13823
base: master
Are you sure you want to change the base?
Conversation
This reverts commit 4632d09.
0ea3060
to
3fdffb3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me, making the function not nested is good enough
end | ||
|
||
-- wipe dp lmdb, full sync | ||
return { default = { deltas = deltas, wipe = true, }, } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return { default = { deltas = deltas, wipe = true, }, } | |
return gen_delta_result(deltas, true) |
Otherwise remove the function above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talked offline, it is not a blocker.
local function gen_delta_result(res, wipe) | ||
return { default = { deltas = res, wipe = wipe, }, } | ||
|
||
local function full_sync_result() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local function full_sync_result() | |
local function full_sync() |
The name is not very proper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talked offline, it is not a blocker.
Summary
KAG-5728
Checklist
changelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdIssue reference
Fix #[issue number]