Skip to content

Commit

Permalink
support redis 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kjin committed Mar 14, 2017
1 parent dc41a8b commit c529cd1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/plugins/plugin-redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function unwrapInstallStreamListeners(redis) {
module.exports = [
{
file: '',
versions: '2.6',
versions: '>=2.6',
patch: function(redis, api) {
wrapCreateStream(redis, api);
wrapInternalSendCommand(redis, api);
Expand All @@ -197,7 +197,7 @@ module.exports = [
},
{
file: '',
versions: '>2.3.x <2.6',
versions: '>2.3 <2.6',
patch: function(redis, api) {
wrapSendCommand(redis, api);
wrapCreateStream(redis, api);
Expand All @@ -211,7 +211,7 @@ module.exports = [
},
{
file: '',
versions: '<=2.3.x',
versions: '<=2.3',
patch: function(redis, api) {
wrapSendCommand(redis, api);
wrapInstallStreamListeners(redis, api);
Expand Down
2 changes: 1 addition & 1 deletion test/plugins/fixtures/redis2.x/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"version": "1.0.0",
"main": "index.js",
"dependencies": {
"redis": "^2.2.5"
"redis": "^2.x"
}
}
2 changes: 1 addition & 1 deletion test/plugins/test-trace-redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var RESULT_SIZE = 5;
var assert = require('assert');
var versions = {
redis0: './fixtures/redis0.12',
// Our patches are different on redis <2.3, 2.3 - 2.6, and >2.6
// Our patches are different on redis <=2.3, >2.3 <2.6, and >=2.6
redis2dot3: './fixtures/redis2.3',
redis2dot4: './fixtures/redis2.4',
redis2dotx: './fixtures/redis2.x',
Expand Down

0 comments on commit c529cd1

Please sign in to comment.