• Steven Allen's avatar
    fix: make close work again · d1d80624
    Steven Allen authored
    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.
    d1d80624
peerstore.go 1.58 KB