Skip to content

Commit

Permalink
Refactored doc comments, log messages and removed use of alias [] for…
Browse files Browse the repository at this point in the history
… get
  • Loading branch information
sacOO7 committed Jun 21, 2024
1 parent 3293448 commit 66e323e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/ably/models/protocol_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ def to_s
end

# True if the ProtocolMessage appears to be invalid, however this is not a guarantee
# Used for validating incoming protocol messages, so no need to add unnecessary checks
# @return [Boolean]
# @api private
def invalid?
Expand Down
2 changes: 1 addition & 1 deletion lib/ably/realtime/channels.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def release(channel)
# @api private
def set_channel_serials(serials)
serials.each do |channel_name, channel_serial|
self[channel_name].properties.channel_serial = channel_serial
get(channel_name).properties.channel_serial = channel_serial
end
end

Expand Down
4 changes: 2 additions & 2 deletions lib/ably/realtime/client/incoming_message_dispatcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def dispatch_protocol_message(*args)
protocol_message.action == :attached
)
get_channel(protocol_message.channel).tap do |channel|
logger.info "Setting channel serial for channel #{channel.name}"
logger.info "Previous serial #{channel.properties.channel_serial}, new serial #{protocol_message.channel_serial}"
logger.info "Setting channel serial for channel #{channel.name}, " <<
"Previous: #{channel.properties.channel_serial}, New: #{protocol_message.channel_serial}"
channel.properties.channel_serial = protocol_message.channel_serial
end
end
Expand Down

0 comments on commit 66e323e

Please sign in to comment.