mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2025-01-15 02:40:07 +08:00
d1d80624c4
Reference pstoremem components by pointer to: 1. Avoid copying locks around on construction. 2. Avoid copying these around when calling `weakClose`. 3. Ensures that they all implement the `io.Closer` interface (it's implemented on the pointer, not the value). Technically, we could have just taken a reference when calling `weakClose`, but this is cleaner. |
||
---|---|---|
.. | ||
addr_book.go | ||
inmem_test.go | ||
keybook.go | ||
metadata.go | ||
peerstore.go | ||
protobook.go |