fix build: Remove unused refs

Sparkd release builds were failing with warnings-as-errors about unused refs
This commit is contained in:
John Colvin committed 2024-11-26 18:40:34 +00:00
1 parent 6bc397b497
commit e68f6d5eb1
1 file changed
+2 -2
@@ -228,10 +228,10 @@ void DatabentoDatahandler::run(
LOG(md, Error, "Timed out waiting for data");
break;
}
if (auto* bbo = record->GetIf<databento::Mbp1Msg>()) {
if (record->GetIf<databento::Mbp1Msg>() != nullptr) {
process_bbo(*record);
}
if (auto* def = record->GetIf<databento::InstrumentDefMsg>()) {
if (record->GetIf<databento::InstrumentDefMsg>() != nullptr) {
process_security(*record);
}
} catch (const databento::TcpError& error) {