diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-04-18 14:39:49 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-04-18 14:39:49 +0300 |
commit | 95187c94e94c46214cb56e480f92fbaa40fbdcc0 (patch) | |
tree | 3e2079175cfa8284b4ab24340a311c67c9872c22 /server/TracyWorker.cpp | |
parent | cd3f9c8831342af6670e200ccd2f365842602abf (diff) |
Bump protocol to simplify IsQueryPrio().
Diffstat (limited to 'server/TracyWorker.cpp')
-rw-r--r-- | server/TracyWorker.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index d9967a93..552432b3 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -254,17 +254,9 @@ static uint64_t ReadHwSampleVec( FileRead& f, SortedVector<Int48, Int48Sort>& ve return sz; } -// Should be just a simple comparison. Do this when protocol version changes. static bool IsQueryPrio( ServerQuery type ) { - return - type == ServerQuery::ServerQueryString || - type == ServerQuery::ServerQueryThreadString || - type == ServerQuery::ServerQuerySourceLocation || - type == ServerQuery::ServerQueryPlotName || - type == ServerQuery::ServerQueryFrameName || - type == ServerQuery::ServerQueryParameter || - type == ServerQuery::ServerQueryFiberName; + return type < ServerQuery::ServerQueryDisconnect; } |