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

Commit e16f61d

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

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
@@ -177,13 +177,13 @@ DPS_Status DPS_AddTopic(DPS_BitVector* bf, const char* topic, const char* separa
177177
tp += len;
178178
}
179179
if (ret == DPS_OK) {
180-
segment[prefix] = INFIX_WILDC;
180+
segment[prefix] = INFIX_WILDC;
181+
DPS_BitVectorBloomInsert(bf, (uint8_t*)segment, prefix + 1);
182+
while (prefix >= 0) {
183+
segment[prefix] = FINAL_WILDC;
181184
DPS_BitVectorBloomInsert(bf, (uint8_t*)segment, prefix + 1);
182-
while (prefix >= 0) {
183-
segment[prefix] = FINAL_WILDC;
184-
DPS_BitVectorBloomInsert(bf, (uint8_t*)segment, prefix + 1);
185-
--prefix;
186-
}
185+
--prefix;
186+
}
187187
}
188188
free(segment);
189189
return ret;

0 commit comments

Comments
 (0)