rgossip2 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rgossip2/node.rb CHANGED
@@ -73,7 +73,9 @@ module RGossip2
73
73
  end
74
74
 
75
75
  def reset_timer
76
- debug("Node timer is reset: address=#{@address}")
76
+ # 意図的にコメントアウト
77
+ #debug("Node timer is reset: address=#{@address}")
78
+ @timer.timeout = @context.node_lifetime
77
79
  @timer.reset
78
80
  end
79
81
 
@@ -11,6 +11,8 @@ module RGossip2
11
11
  #
12
12
  class Timer
13
13
 
14
+ attr_accessor :timeout
15
+
14
16
  def initialize(timeout, &block)
15
17
  @timeout = timeout
16
18
  @block = block
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgossip2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - winebarrel