Skip to content

Commit 992b6a4

Browse files
committed
fix review4: fmt get methods
1 parent f8cd600 commit 992b6a4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

extra/modules/greenbids-real-time-data/src/main/java/org/prebid/server/hooks/modules/greenbids/real/time/data/model/predictor/ModelCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public ModelCache(
4444
this.vertx = vertx;
4545
}
4646

47-
public Future<OnnxModelRunner> getModelRunner(String onnxModelPath, String pbuid) {
47+
public Future<OnnxModelRunner> get(String onnxModelPath, String pbuid) {
4848
final String cacheKey = onnxModelCacheKeyPrefix + pbuid;
4949
final OnnxModelRunner cachedOnnxModelRunner = cache.getIfPresent(cacheKey);
5050

extra/modules/greenbids-real-time-data/src/main/java/org/prebid/server/hooks/modules/greenbids/real/time/data/model/predictor/OnnxModelRunnerWithThresholds.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ public OnnxModelRunnerWithThresholds(
2222

2323
public Future<OnnxModelRunner> retrieveOnnxModelRunner(Partner partner) {
2424
final String onnxModelPath = "models_pbuid=" + partner.getPbuid() + ".onnx";
25-
return modelCache.getModelRunner(onnxModelPath, partner.getPbuid());
25+
return modelCache.get(onnxModelPath, partner.getPbuid());
2626
}
2727

2828
public Future<Double> retrieveThreshold(Partner partner) {
2929
final String thresholdJsonPath = "thresholds_pbuid=" + partner.getPbuid() + ".json";
30-
return thresholdCache.getThrottlingThresholds(thresholdJsonPath, partner.getPbuid())
30+
return thresholdCache.get(thresholdJsonPath, partner.getPbuid())
3131
.map(partner::getThreshold);
3232
}
3333
}

extra/modules/greenbids-real-time-data/src/main/java/org/prebid/server/hooks/modules/greenbids/real/time/data/model/predictor/ThresholdCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public ThresholdCache(
5151
this.vertx = vertx;
5252
}
5353

54-
public Future<ThrottlingThresholds> getThrottlingThresholds(String thresholdJsonPath, String pbuid) {
54+
public Future<ThrottlingThresholds> get(String thresholdJsonPath, String pbuid) {
5555
final String cacheKey = thresholdsCacheKeyPrefix + pbuid;
5656
final ThrottlingThresholds cachedThrottlingThresholds = cache.getIfPresent(cacheKey);
5757

0 commit comments

Comments
 (0)