Skip to content

Commit

Permalink
minor cleanup and refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
anshul.singh committed Sep 16, 2024
1 parent 58e9c4d commit 1200509
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.flipkart.varadhi.cluster.messages.ClusterMessage;
import com.flipkart.varadhi.cluster.messages.ResponseMessage;
import com.flipkart.varadhi.exceptions.NotImplementedException;
import com.flipkart.varadhi.utils.JsonMapper;
import io.vertx.core.eventbus.DeliveryOptions;
import io.vertx.core.eventbus.EventBus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.flipkart.varadhi.cluster;


import com.flipkart.varadhi.cluster.messages.*;
import com.flipkart.varadhi.exceptions.NotImplementedException;
import com.flipkart.varadhi.cluster.messages.ClusterMessage;
import com.flipkart.varadhi.cluster.messages.MsgHandler;
import com.flipkart.varadhi.cluster.messages.RequestHandler;
import com.flipkart.varadhi.cluster.messages.ResponseMessage;
import com.flipkart.varadhi.exceptions.VaradhiException;
import com.flipkart.varadhi.utils.JsonMapper;
import io.vertx.core.eventbus.DeliveryOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public RateLimiter(VaradhiTopicService varadhiTopicService, int windowSize, Weig
this.windowSize = windowSize;
this.weightFunction = weightFunction;
this.loadHistory = TreeMultiset.create();
this.suppressionData = new SuppressionData();
this.suppressionData = new SuppressionData<>();
sendSuppressionFactorToWeb();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class ProduceTestBase extends WebTestBase {
String deployedRegion = "region1";
String serviceHost = "localhost";
TrafficAggregator trafficAggregator;
SuppressorHandler suppressorHandler;
SuppressorHandler<Float> suppressorHandler;
ArgumentCaptor<Message> msgCapture;
String topicPath = "/projects/project1/topics/topic1/produce";
String topicFullName = "project1.topic1";
Expand Down

0 comments on commit 1200509

Please sign in to comment.