Method: LS4::WeightMemberService#run

Defined in:
lib/ls4/service/weight.rb

#runObject



121
122
123
124
125
126
127
128
129
130
# File 'lib/ls4/service/weight.rb', line 121

def run
  super

  SyncBus.register_callback(SYNC_REPLSET_WEIGHT,
            @winfo.get_hash) do |obj|
    @winfo.from_msgpack(obj)
    on_change
    @winfo.get_hash
  end
end