AnalyticsServiceServer.save_volsurface was not calling the response return function

This commit is contained in:
Taha Afzal authored and John Colvin committed 2021-12-21 14:34:46 -05:00
1 parent 452a3eb698
commit 76dfd02aa8
1 file changed
+5 -1
@@ -2,6 +2,7 @@
#include "lib/api/apicore.pb.h"
#include "lib/api/services/AnalyticsService.pb.h"
#include "lib/api/services/AnalyticsService.server.pb.h"
#include "lib/api/services/ShellLatencyService.pb.h"
#include "lib/logging/logging.h"
#include "lib/persistence/IStore.h"
#include "lib/persistence/SqliteStore.h"
@@ -133,7 +134,7 @@ void AnalyticsServiceServer::get_new_volsurface_id(
void AnalyticsServiceServer::save_volsurface(
const bts::api::analytics::VolSurfaceEntry &vs_entry_arg,
const api::Response<::bts::api::ResultMessage> &) {
const api::Response<::bts::api::ResultMessage> &response) {
using namespace std::chrono;
milliseconds ms =
duration_cast<milliseconds>(system_clock::now().time_since_epoch());
@@ -151,6 +152,9 @@ void AnalyticsServiceServer::save_volsurface(
me->vs_store->insert(ns, key, value);
me->vs_publisher.add_or_update(vs_entry);
me->vs_publisher.flush();
api::ResultMessage ret;
ret.set_success(true);
response(ret);
}
void AnalyticsServiceServer::delete_volsurface(