Skip to content
Browse files

[membership] added_member confirmation

  • Loading branch information...
1 parent aa6f4cf commit a43235fc559100116bc16673d7ce5d0b26cf219e @seshness seshness committed Dec 11, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 new_sandbox/membership/membership.rb
View
7 new_sandbox/membership/membership.rb
@@ -6,6 +6,9 @@ module MembershipProtocol
interface input, :add_member, [:ident] => [:host]
interface input, :remove_member, [:ident]
interface output, :member, [:ident] => [:host]
+
+ interface output, :added_member, [:ident] => [:host]
+ interface output, :removed_member, [:ident] => [:host]
end
end
@@ -19,4 +22,8 @@ module Membership
private_members <- (remove_member * private_members).pairs(:ident => :ident)
member <= private_members
end
+
+ bloom :report_status do
+ added_member <= (add_member * private_members).pairs(:ident => :ident)
+ end
end

0 comments on commit a43235f

Please sign in to comment.
Something went wrong with that request. Please try again.