SX, SY have meanings in the spec that are not the same as the meanings here. Rename.
This commit is contained in:
parent
6b76e29da1
commit
9d1721e94b
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue