Skip to content

Commit

Permalink
Refactored code as per review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Dec 1, 2023
1 parent 5865513 commit d2cc0cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ably/proto_protocol_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestProtocolMessageEncodeZeroSerials(t *testing.T) {
}
encoded, err := ablyutil.MarshalMsgpack(msg)
assert.NoError(t, err)
// expect a 3-element map with both the serial fields set to zero
// expect a 2-element map with both the serial fields set to zero
expected := []byte("\x82\xa2id\xa4test\xa9msgSerial\x00")
assert.True(t, bytes.Equal(encoded, expected),
"unexpected msgpack encoding\nexpected: %x\nactual: %x", expected, encoded)
Expand Down
2 changes: 1 addition & 1 deletion ably/realtime_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ func (c *RealtimeChannel) SubscribeAll(ctx context.Context, handle func(*Message
return unsubscribe, nil
}

// SubscribeAll registers an event listener for error messages on this channel.
// OnError registers an event listener for error messages on this channel.
//
// See package-level documentation => [ably] Event Emitters for details about messages dispatch.
func (c *RealtimeChannel) OnError(handle func(*ErrorInfo)) (func(), error) {
Expand Down

0 comments on commit d2cc0cf

Please sign in to comment.