The Get operation returns a ErrNotFound error type (not a sentinel value) if the key is not found. This is a somewhat inconvenient pattern for callers, and the higher level actor code adapts it to distinguish actual errors from key-not-found information.
Change the return type to (bool, error) (with the value being written to the out parameter).
The
Get
operation returns a ErrNotFound error type (not a sentinel value) if the key is not found. This is a somewhat inconvenient pattern for callers, and the higher level actor code adapts it to distinguish actual errors from key-not-found information.Change the return type to (bool, error) (with the value being written to the out parameter).
See also https://github.com/filecoin-project/go-hamt-ipld/issues/82