Skip to content

Commit

Permalink
Fix cpp lint
Browse files Browse the repository at this point in the history
Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia committed Nov 25, 2024
1 parent 3f17b1f commit b339976
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/core/src/segcore/segcore_init_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ GetMinimalIndexVersion() {

extern "C" void
SetThreadName(const char* name) {

Check warning on line 110 in internal/core/src/segcore/segcore_init_c.cpp

View check run for this annotation

Codecov / codecov/patch

internal/core/src/segcore/segcore_init_c.cpp#L110

Added line #L110 was not covered by tests
#ifdef __linux__
#ifdef __linux__
pthread_setname_np(pthread_self(), name);

Check warning on line 112 in internal/core/src/segcore/segcore_init_c.cpp

View check run for this annotation

Codecov / codecov/patch

internal/core/src/segcore/segcore_init_c.cpp#L112

Added line #L112 was not covered by tests
#elif __APPLE__
#elif __APPLE__
pthread_setname_np(name);
#endif
#endif
}

Check warning on line 116 in internal/core/src/segcore/segcore_init_c.cpp

View check run for this annotation

Codecov / codecov/patch

internal/core/src/segcore/segcore_init_c.cpp#L116

Added line #L116 was not covered by tests

} // namespace milvus::segcore

0 comments on commit b339976

Please sign in to comment.