Skip to content

Commit

Permalink
- fix ruby warnings (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan authored Jan 10, 2025
1 parent 02673a4 commit 1ad40f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 0 additions & 3 deletions lib/nats/io/jetstream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
require_relative "msg"
require_relative "client"
require_relative "errors"
require_relative "kv"
require_relative "jetstream/api"
require_relative "jetstream/errors"
Expand Down
5 changes: 5 additions & 0 deletions lib/nats/io/jetstream/msg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ class JetStream
module Msg
end
end

class Msg
# Enhance it with ack related methods from JetStream to ack msgs.
include JetStream::Msg::AckMethods
end
end
5 changes: 0 additions & 5 deletions lib/nats/io/msg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,11 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
require_relative "jetstream"

module NATS
class Msg
attr_accessor :subject, :reply, :data, :header

# Enhance it with ack related methods from JetStream to ack msgs.
include JetStream::Msg::AckMethods

def initialize(opts = {})
@subject = opts[:subject]
@reply = opts[:reply]
Expand Down

0 comments on commit 1ad40f5

Please sign in to comment.