Permalink
Browse files

Whitespace cleanup.

  • Loading branch information...
1 parent 22129ac commit 8140d9b34fdd745ef8877da4e9e850176c2420c5 @neilconway neilconway committed Sep 18, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 bfs/hb_master.rb
View
@@ -18,18 +18,18 @@ module HBMaster
end
bloom :hbmasterlogic do
- chunk_cache <+ (master_duty_cycle * last_heartbeat).flat_map do |d, l|
+ chunk_cache <+ (master_duty_cycle * last_heartbeat).flat_map do |d, l|
l.payload[1].map do |pay|
unless chunk_cache{|c| c.chunkid if c.node == l.peer}.include? pay
[l.peer, pay, d.val.to_f] unless pay.nil?
end
- end
+ end
end
chunk_cache_alive <+ (master_duty_cycle * chunk_cache * last_heartbeat).combos(chunk_cache.node => last_heartbeat.peer) do |l, c, h|
c if (l.val.to_f - h.time) < 3
end
-
+
chunk_cache_alive <- (master_duty_cycle * chunk_cache_alive).rights
hb_ack <~ heartbeat do |l|
[l.sender, l.payload[0]] unless l.payload[1] == [nil]

0 comments on commit 8140d9b

Please sign in to comment.