1. 16 Nov, 2017 3 commits
  2. 15 Nov, 2017 1 commit
    • Steven Allen's avatar
      Make remove idempotent. · 6f9115bb
      Steven Allen authored
      1. Add is already idempotent. This makes remove match.
      2. Generally, all we care about is that the node no longer exists in the DAG. If
      two callers remove a node at the same time, they should both succeed. Currently,
      we *ignore* the result of Remove in go-ipfs. IMO, it would be better to let
      errors be *errors* and only return an error if something goes wrong.
      3. This can be significantly faster. It allows us to batch/queue removes (as
      long as we guarantee that they'll eventually happen).
      4. This matches how most databases/key-value stores operate.
      
      An alternative would be to return `(deleted bool, err error)` but then we don't
      get the speedup.
      6f9115bb
  3. 16 Oct, 2017 10 commits