@@ -54,20 +54,20 @@ func main() {
54
54
flag .StringVar (& snsRegion , "sns-region" , "" , "AWS region where SNS topic is deployed" )
55
55
56
56
flag .String ("mode" , "" , "mode (ignored)" )
57
+
58
+ adv := scyllacdc.AdvancedReaderConfig {}
59
+ flag .DurationVar (& adv .ConfidenceWindowSize , "polling-confidence-window-size" , 30 * time .Second , "" )
60
+ flag .DurationVar (& adv .ChangeAgeLimit , "polling-change-age-limit" , 10 * time .Minute , "" )
61
+ flag .DurationVar (& adv .QueryTimeWindowSize , "pooling-query-time-window-size" , 1 * time .Minute , "" )
62
+ flag .DurationVar (& adv .PostEmptyQueryDelay , "polling-post-empty-query-delay" , 30 * time .Second , "" )
63
+ flag .DurationVar (& adv .PostNonEmptyQueryDelay , "polling-post-non-empty-query-delay" , 10 * time .Second , "" )
64
+ flag .DurationVar (& adv .PostFailedQueryDelay , "pooling-post-failed-query-delay" , 1 * time .Second , "" )
65
+
57
66
flag .Parse ()
58
67
59
68
clRead := parseConsistency (readConsistency )
60
69
clWrite := parseConsistency (writeConsistency )
61
70
62
- adv := scyllacdc.AdvancedReaderConfig {
63
- ConfidenceWindowSize : 30 * time .Second ,
64
- ChangeAgeLimit : 10 * time .Minute ,
65
- QueryTimeWindowSize : 60 * time .Second ,
66
- PostEmptyQueryDelay : 30 * time .Second ,
67
- PostNonEmptyQueryDelay : 10 * time .Second ,
68
- PostFailedQueryDelay : 1 * time .Second ,
69
- }
70
-
71
71
fmt .Println ("Parameters:" )
72
72
fmt .Printf (" Keyspace: %s\n " , keyspace )
73
73
fmt .Printf (" Table: %s\n " , table )
0 commit comments