log connection compression status, bugfix

This commit is contained in:
Doug Hoyte
2023-01-20 14:17:00 -05:00
parent 9f2430fa64
commit cf7f92451f
3 changed files with 12 additions and 3 deletions

View File

@ -75,6 +75,8 @@ struct EventToWrite {
uint64_t nodeId = 0;
EventWriteStatus status = EventWriteStatus::Pending;
EventToWrite() {}
EventToWrite(std::string flatStr, std::string jsonStr, uint64_t receivedAt, void *userData = nullptr) : flatStr(flatStr), jsonStr(jsonStr), receivedAt(receivedAt), userData(userData) {
const NostrIndex::Event *flat = flatbuffers::GetRoot<NostrIndex::Event>(flatStr.data());
quadKey = flatEventToQuadrableKey(flat);