Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
Realign after previous commit
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Gelman <[email protected]>
  • Loading branch information
talih0 committed Sep 8, 2020
1 parent 91f6c35 commit bdb9087
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/topics.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ DPS_Status DPS_AddTopic(DPS_BitVector* bf, const char* topic, const char* separa
tp += len;
}
if (ret == DPS_OK) {
segment[prefix] = INFIX_WILDC;
segment[prefix] = INFIX_WILDC;
DPS_BitVectorBloomInsert(bf, (uint8_t*)segment, prefix + 1);
while (prefix >= 0) {
segment[prefix] = FINAL_WILDC;
DPS_BitVectorBloomInsert(bf, (uint8_t*)segment, prefix + 1);
while (prefix >= 0) {
segment[prefix] = FINAL_WILDC;
DPS_BitVectorBloomInsert(bf, (uint8_t*)segment, prefix + 1);
--prefix;
}
--prefix;
}
}
free(segment);
return ret;
Expand Down

0 comments on commit bdb9087

Please sign in to comment.