Change the closure in handle_info(measurement_tick,...) to call a named function for clarity.
Change the closure in handle_info(measurement_tick,...) to call a named function for clarity.

Change use of ?INET_STATS and ?INET_OPTS to literals rather than passing them around in the state. They're not externally accessible, so there's no need to keep them there, and since they're simple atom lists they'll live happily in the module's literal pool without copying.

Kyorai/riak_core