Skip to content

Commit f0882fc

Browse files
Last clean up
1 parent f2928d8 commit f0882fc

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9+
### Added
10+
11+
- `remove_member` function to clean up member data.
12+
13+
914
## [2.4.1] - 2023-09-28
15+
1016
### Fixed
1117

1218
- Log overflow when inner fibers weren't canceled.

membership.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,11 +536,9 @@ local function _protocol_step()
536536
end
537537
end
538538

539-
local protocol_step_in_progress = fiber.cond()
540539
local function protocol_step()
541540
local t1 = fiber.clock()
542541
local ok, res = xpcall(_protocol_step, debug.traceback)
543-
protocol_step_in_progress:signal()
544542
fiber.testcancel()
545543

546544
if not ok then
@@ -938,12 +936,11 @@ local function set_payload(key, value)
938936
return true
939937
end
940938

941-
--- Remove a member.
939+
--- Remove a member. Don't use it unless you having a trouble with stale members.
942940
-- @function remove_member
943941
-- @tparam uri string
944942
local function remove_member(uri)
945943
checks('string')
946-
protocol_step_in_progress:wait(60)
947944
local member = members.get(uri)
948945
if member == nil then
949946
return

membership/options.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ options.MAX_PACKET_SIZE = 1472
7171
--- Initialization vector for aes256 CBC encryption.
7272
options.ENCRYPTION_INIT = 'init-key-16-byte'
7373

74-
7574
options.log_debug = log.debug
7675

7776
function options.get_encryption_key()

0 commit comments

Comments
 (0)