Skip to content

Commit

Permalink
Merge pull request #162 from WilliamBruneau/limit_subscription
Browse files Browse the repository at this point in the history
Windows clients do not support queries with __strictly__ more than 256 channels
  • Loading branch information
vruello authored Aug 5, 2024
2 parents 75689ac + 5e71f05 commit 8e193e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/subscriptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ fn check_query_size(query: &str) -> Result<bool> {
let channels = get_query_channels(doc.root_element())?;

// Windows clients seem to not like queries selecting more than 256 channels
if channels.len() >= 256 {
if channels.len() > 256 {
println!("The query selects more than 256 channels and will probably not work on Windows clients.");
Ok(utils::confirm(
"Do you want to ignore this warning and continue?",
Expand Down

0 comments on commit 8e193e5

Please sign in to comment.