From 7ad5ec94e9dcea214d8be1127a30709bb33fdbff Mon Sep 17 00:00:00 2001 From: Reza Taroosheh Date: Wed, 1 Jun 2022 16:00:00 +0200 Subject: [PATCH] Resolve the issue #78 by reordering TS.ADD arguments --- NRedisTimeSeries/TimeSeriesClientAux.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NRedisTimeSeries/TimeSeriesClientAux.cs b/NRedisTimeSeries/TimeSeriesClientAux.cs index 726532f..7407d5e 100644 --- a/NRedisTimeSeries/TimeSeriesClientAux.cs +++ b/NRedisTimeSeries/TimeSeriesClientAux.cs @@ -186,10 +186,10 @@ private static List BuildTsCreateArgs(string key, long? retentionTime, I { var args = new List {key}; args.AddRetentionTime(retentionTime); - args.AddChunkSize(chunkSizeBytes); - args.AddLabels(labels); args.AddUncompressed(uncompressed); + args.AddChunkSize(chunkSizeBytes); args.AddDuplicatePolicy(policy); + args.AddLabels(labels); return args; } @@ -206,10 +206,10 @@ private static List BuildTsAddArgs(string key, TimeStamp timestamp, doub { var args = new List {key, timestamp.Value, value}; args.AddRetentionTime(retentionTime); - args.AddChunkSize(chunkSizeBytes); - args.AddLabels(labels); args.AddUncompressed(uncompressed); + args.AddChunkSize(chunkSizeBytes); args.AddOnDuplicate(policy); + args.AddLabels(labels); return args; } @@ -219,9 +219,9 @@ private static List BuildTsIncrDecrByArgs(string key, double value, Time var args = new List {key, value}; args.AddTimeStamp(timestamp); args.AddRetentionTime(retentionTime); + args.AddUncompressed(uncompressed); args.AddChunkSize(chunkSizeBytes); args.AddLabels(labels); - args.AddUncompressed(uncompressed); return args; }