SX, SY have meanings in the spec that are not the same as the meanings here. Rename.

This commit is contained in:
Simon MacMullen 2011-01-18 12:21:57 +00:00
parent 6b76e29da1
commit 9d1721e94b
1 changed files with 3 additions and 2 deletions

View File

@ -294,10 +294,11 @@ do_login({ok, Login}, {ok, Passcode}, VirtualHost, Heartbeat, Version, State) ->
{ok, Channel} = amqp_connection:open_channel(Connection),
SessionId = rabbit_guid:string_guid("session"),
{{SX, SY}, State1} = ensure_heartbeats(Heartbeat, State),
{{SendTimeout, ReceiveTimeout}, State1} =
ensure_heartbeats(Heartbeat, State),
ok("CONNECTED",
[{"session", SessionId},
{"heartbeat", io_lib:format("~B,~B", [SX, SY])},
{"heartbeat", io_lib:format("~B,~B", [SendTimeout, ReceiveTimeout])},
{"version", Version}],
"",
State1#state{session_id = SessionId,