teamd-discover 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7688ecb167301f72681f6ebb8593547d94767155
4
- data.tar.gz: 75a20094f5b7234258feb8c45c0e354bfa4cc9f4
3
+ metadata.gz: 46131e312162f79343397b1a3e73d4bb14232aa2
4
+ data.tar.gz: a4de1dca63758227da8069406902db5eafcc5a95
5
5
  SHA512:
6
- metadata.gz: 4d9e290a6241a7ffc23b1119e364b4574adb1debb0f96d481dfc8b4ab3f4649f8148ca8bfbf97bfb762ca9e321f643a1521af779280d3aded03a93fc4eb0791d
7
- data.tar.gz: f3329372574ecb084a38c44b185e202e876214b9bdc001446ed73fb40e3637344508d1ac3333cf51806c4016cf7482edb0612a9d314dfde534aaae0f758385ae
6
+ metadata.gz: 4c2ff4233845d4807f316d2d13ffc66ec6343ffb77c890b39aacfcb3869ae2830b9361165be903c851b17a1861f92d0315533a7ed058b9bde7ef6f380f549642
7
+ data.tar.gz: 8f478d6bfe55d5f722178895610cbfe1405723805f875af30fa5d31df0400c4339ea505e176004aa231a2236d39d8bee8230a5cc9788ffe5e239a79f7e00aac6
@@ -30,7 +30,12 @@ module Teamd
30
30
  end
31
31
  end
32
32
  i,_=IO.pipe
33
- Thread.new { @transport.transmit Message.build("discovery" => true) }
33
+ Thread.new do
34
+ loop do
35
+ @transport.transmit Message.build("discovery" => true)
36
+ sleep 1
37
+ end
38
+ end
34
39
  IO.select([i])
35
40
  end
36
41
  def announce
@@ -15,8 +15,8 @@ module Teamd
15
15
  loop do
16
16
  data,_ = from_network.pop
17
17
  packet = @protocol.unpack data
18
- next if packet.tid == Peer.tid
19
18
  puts "<< #{packet}"
19
+ next if packet.tid == Peer.tid
20
20
  return packet
21
21
  end
22
22
  end
@@ -1,5 +1,5 @@
1
1
  module Teamd
2
2
  module Discover
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamd-discover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Kaufmann