lib/moleculer/packets/heartbeat.rb in moleculer-0.2.0 vs lib/moleculer/packets/heartbeat.rb in moleculer-0.3.0
- old
+ new
@@ -1,18 +1,17 @@
+# frozen_string_literal: true
+
require_relative "base"
module Moleculer
module Packets
##
# Represents a DISCOVER packet
class Heartbeat < Base
+ def initialize(config, data = {})
+ super(config, data)
- def initialize(data)
- super(data)
-
@cpu = 0
end
-
-
end
end
end