|
|
@@ -159,8 +159,8 @@ flush({Connection, Route, Subscription}, {Received0, Sent0, Dropped0}) ->
|
|
|
diff(Sent, Sent0),
|
|
|
diff(Dropped, Dropped0)},
|
|
|
Ts = get_local_time(),
|
|
|
- mria:transaction(mria:local_content_shard(),
|
|
|
- fun mnesia:write/1, [#mqtt_collect{timestamp = Ts, collect = Collect}]),
|
|
|
+ _ = mria:transaction(mria:local_content_shard(),
|
|
|
+ fun mnesia:write/1, [#mqtt_collect{timestamp = Ts, collect = Collect}]),
|
|
|
{Received, Sent, Dropped}.
|
|
|
|
|
|
avg(Items) ->
|