spend_tx/2,3 have a bad type #26
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
hz:spend/2,3have a return type ofTransaction :: binary() | {error, Reason :: term()}in practice. This isn't noted, but is dumb anyway.It should be a return type of
{ok, Transaction} | {error, Reason}because of course it should be.This will break the interface slightly, so should probably be updated in the v1.0 release later once we decide what we're really promising.
This sort of troublesome nonsense still lingering in the interface means we (I? lol) should give the entire documented interface a once-over before going to v1.0.