summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Klishin <michael@rabbitmq.com>2014-06-25 10:47:13 +0400
committerMichael Klishin <michael@rabbitmq.com>2014-06-25 10:47:13 +0400
commit3b2792fc200f5410c8dd847d72df533819d5d5c8 (patch)
treece9f67de5b147a31bc87bb9011822b56b11e8a73 /src
parent4e7c21cd1ebea5ed30b650e4a843e875dc1ab586 (diff)
downloadrabbitmq-server-git-3b2792fc200f5410c8dd847d72df533819d5d5c8.tar.gz
Convert connected_at to timestamp when bound since it is immutable
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_reader.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index 7304ccf368..7c03289327 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}) ->