Skip to content

Commit

Permalink
use '.' separator for generated tempKeySuffix, v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffbski committed Jul 4, 2013
1 parent b73002d commit c39989a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/redis-wstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function RedisWStream(client, key, options) {
this._redisKey = key;
this._redisTempKey = (options.tempKeySuffix) ?
key + options.tempKeySuffix :
key + crypto.randomBytes(RANDOM_BYTES_LENGTH).toString('base64');
key + '.' + crypto.randomBytes(RANDOM_BYTES_LENGTH).toString('base64');
this._redisClientMulti = options.clientMulti;
this._redisClient.set(this._redisTempKey, '', function (err, result) { // truncate any existing data
if (err) throw (err && err.message) ? err : new Error(err);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "redis-wstream",
"description": "redis-wstream - node.js redis write stream which streams binary or utf8 data into a redis key using an existing redis client (streams2)",
"version": "0.2.0",
"version": "0.2.1",
"author": "Jeff Barczewski <jeff.barczewski@gmail.com>",
"repository": {
"type": "git",
Expand Down

0 comments on commit c39989a

Please sign in to comment.