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

Commit bdb9087

Browse files
committed
Realign after previous commit
Signed-off-by: Andriy Gelman <[email protected]>
1 parent 91f6c35 commit bdb9087

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/topics.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,13 @@ DPS_Status DPS_AddTopic(DPS_BitVector* bf, const char* topic, const char* separa
174174
tp += len;
175175
}
176176
if (ret == DPS_OK) {
177-
segment[prefix] = INFIX_WILDC;
177+
segment[prefix] = INFIX_WILDC;
178+
DPS_BitVectorBloomInsert(bf, (uint8_t*)segment, prefix + 1);
179+
while (prefix >= 0) {
180+
segment[prefix] = FINAL_WILDC;
178181
DPS_BitVectorBloomInsert(bf, (uint8_t*)segment, prefix + 1);
179-
while (prefix >= 0) {
180-
segment[prefix] = FINAL_WILDC;
181-
DPS_BitVectorBloomInsert(bf, (uint8_t*)segment, prefix + 1);
182-
--prefix;
183-
}
182+
--prefix;
183+
}
184184
}
185185
free(segment);
186186
return ret;

0 commit comments

Comments
 (0)