Skip to content

Commit 989730c

Browse files
committed
rm whitespace
1 parent 8afa952 commit 989730c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

examples/server/utils.hpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -983,10 +983,10 @@ struct server_inp_chunk {
983983
* server_inputs is a helper to manage the input tokens and image for the server.
984984
*
985985
* the difference between server_inputs and mtmd_input_chunks is that each chunk of server_inputs only contains a single text token, but text chunk of mtmd_input_chunks can contain multiple tokens.
986-
*
986+
*
987987
* for example, server_inputs may contain 5 text tokens followed by 1 image chunk:
988988
* 1 41 2635 325 463 <image of 15 tokens>
989-
*
989+
*
990990
* in this example:
991991
* - n_tokens() returns 5+15 = 20 total tokens
992992
* - get_chunk(1) returns chunk containing token ID 41
@@ -1163,16 +1163,16 @@ struct server_inputs {
11631163
// No truncation needed, the vector remains unchanged.
11641164
}
11651165

1166-
// Computes FNV-1a hash of the data
1167-
static std::string fnv_hash(const uint8_t * data, size_t len) {
1168-
const uint64_t fnv_prime = 0x100000001b3ULL;
1169-
uint64_t hash = 0xcbf29ce484222325ULL;
1166+
// Computes FNV-1a hash of the data
1167+
static std::string fnv_hash(const uint8_t * data, size_t len) {
1168+
const uint64_t fnv_prime = 0x100000001b3ULL;
1169+
uint64_t hash = 0xcbf29ce484222325ULL;
11701170

1171-
for (size_t i = 0; i < len; ++i) {
1172-
hash ^= data[i];
1173-
hash *= fnv_prime;
1174-
}
1175-
return std::to_string(hash);
1171+
for (size_t i = 0; i < len; ++i) {
1172+
hash ^= data[i];
1173+
hash *= fnv_prime;
1174+
}
1175+
return std::to_string(hash);
11761176
}
11771177
};
11781178

0 commit comments

Comments
 (0)