forked from mattsta/er-outdated
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sending lists of data inside the argument list
Since we can't do varargs in Erlang, we use lists: send(Cxn, Key, [Value1, Value2, Value3]) But sometimes we want to be lazy and just do: send(Cxn, Key, "set a value") This patch allows both cases to co-exist. Instead of (as previously) crashing, we convert the inner values to binaries then return the converted list. At the end, the deep list of binaries is flattened to perform redis protocol calculations and construction.
- Loading branch information
Showing
2 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters