Skip to content

Commit d8656a1

Browse files
ngxsonggerganov
andauthored
Apply suggestions from code review
Co-authored-by: Georgi Gerganov <[email protected]>
1 parent b7aea03 commit d8656a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/server/server.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,8 +1552,8 @@ struct server_queue {
15521552
std::condition_variable condition_tasks;
15531553

15541554
// callback functions
1555-
std::function<void(server_task&&)> callback_new_task;
1556-
std::function<void(void)> callback_update_slots;
1555+
std::function<void(server_task &&)> callback_new_task;
1556+
std::function<void(void)> callback_update_slots;
15571557

15581558
// Add a new task to the end of the queue
15591559
int post(server_task && task, bool front = false) {
@@ -1611,7 +1611,7 @@ struct server_queue {
16111611
}
16121612

16131613
// Register function to process a new task
1614-
void on_new_task(std::function<void(server_task&&)> callback) {
1614+
void on_new_task(std::function<void(server_task &&)> callback) {
16151615
callback_new_task = std::move(callback);
16161616
}
16171617

0 commit comments

Comments
 (0)