Previously, the TimestampCollector was intended to own the address book data, so it was intended to be cloneable and hold shared state among all of its handles. This is now modeled more directly by an `Arc<Mutex<AddressBook>>`, so the only functionality left in the `TimestampCollector` is setting up the inital worker, which is better called `spawn` than `new`. This also fixes a problem introduced in the previous commit where the `TimestampCollector` was dropped, causing the worker task to shut down early. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |