lib/grumlin/client.rb in grumlin-0.4.0 vs lib/grumlin/client.rb in grumlin-0.5.0

- old
+ new

@@ -58,10 +58,10 @@ def connected? @transport&.connected? || false end # TODO: support yielding - def write(*args) # rubocop:disable Metrics/MethodLength + def write(*args) raise NotConnectedError unless connected? request_id = SecureRandom.uuid request = to_query(request_id, args) channel = @request_dispatcher.add_request(request)