mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-12-23 02:31:52 +01:00
update: removed unused variable
This commit is contained in:
parent
ec83d01dca
commit
9bc72e82b2
@ -130,7 +130,7 @@ public class FeatureUpdateController implements FeatureUpdateService.ServiceIfac
|
||||
}
|
||||
|
||||
ThriftIndexingEvent event = featureUpdate.getEvent();
|
||||
return writeToKafka(event, requestStartTimeMillis)
|
||||
return writeToKafka(event)
|
||||
.map(responsesList -> {
|
||||
stats.clientResponse(requestClientId, FeatureUpdateResponseCode.SUCCESS);
|
||||
// only when both Realtime & RealtimeCG succeed, then it will return a success flag
|
||||
@ -162,8 +162,7 @@ public class FeatureUpdateController implements FeatureUpdateService.ServiceIfac
|
||||
* The FeatureUpdateResponse is more like an ACK message, and the upstream (feature update ingester)
|
||||
* will not be affected much even if it failed (as long as the kafka message is written)
|
||||
*/
|
||||
private Future<List<BoxedUnit>> writeToKafka(ThriftIndexingEvent event,
|
||||
long requestStartTimeMillis) {
|
||||
private Future<List<BoxedUnit>> writeToKafka(ThriftIndexingEvent event) {
|
||||
return Futures.collect(Lists.newArrayList(
|
||||
writeToKafkaInternal(event, WRITE_TO_KAFKA_DECIDER_KEY, droppedKafkaUpdateEvents,
|
||||
kafkaUpdateEventsTopicName, -1, kafkaProducer),
|
||||
|
Loading…
Reference in New Issue
Block a user