diff options
author | Michael Klishin <michael@rabbitmq.com> | 2014-06-25 10:47:13 +0400 |
---|---|---|
committer | Michael Klishin <michael@rabbitmq.com> | 2014-06-25 10:47:13 +0400 |
commit | 4a624ea190e67ff4d49c1620311f35cfdf761f1d (patch) | |
tree | ce9f67de5b147a31bc87bb9011822b56b11e8a73 | |
parent | 17538aaeab765a5dde9efc56cbc2ddbb6ddca6c2 (diff) | |
download | rabbitmq-server-4a624ea190e67ff4d49c1620311f35cfdf761f1d.tar.gz |
Convert connected_at to timestamp when bound since it is immutable
-rw-r--r-- | src/rabbit_reader.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl index 7304ccf3..7c032893 100644 --- a/src/rabbit_reader.erl +++ b/src/rabbit_reader.erl @@ -238,7 +238,7 @@ start_connection(Parent, HelperSup, Deb, Sock, SockTransform) -> capabilities = [], auth_mechanism = none, auth_state = none, - connected_at = os:timestamp()}, + connected_at = timestamp(os:timestamp())}, callback = uninitialized_callback, recv_len = 0, pending_recv = false, @@ -1130,7 +1130,7 @@ ic(channel_max, #connection{channel_max = ChMax}) -> ChMax; ic(client_properties, #connection{client_properties = CP}) -> CP; ic(auth_mechanism, #connection{auth_mechanism = none}) -> none; ic(auth_mechanism, #connection{auth_mechanism = {Name, _Mod}}) -> Name; -ic(connected_at, #connection{connected_at = T}) -> timestamp(T); +ic(connected_at, #connection{connected_at = T}) -> T; ic(Item, #connection{}) -> throw({bad_argument, Item}). socket_info(Get, Select, #v1{sock = Sock}) -> |