Skip to content

Commit

Permalink
fix(webserver): incorrect node limit check on worker register (#1652)
Browse files Browse the repository at this point in the history
* fix(webserver): incorrect node limit check on worker register

* update changelog.md

* fix

---------

Co-authored-by: SpeedCrash100 <[email protected]>
  • Loading branch information
wsxiaoys and SpeedCrash100 committed Mar 10, 2024
1 parent 58ec4c6 commit 7672e09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# v0.9.0 [Unreleased]
# v0.9.1 [UNRELEASED]

## Fixes and Improvements
* Fix worker registration check against enterprise licenses.

# v0.9.0

## Features

Expand Down
2 changes: 1 addition & 1 deletion ee/tabby-webserver/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl WorkerService for ServerContext {
.await
.map_err(|_| RegisterWorkerError::RequiresEnterpriseLicense)?;

if license.check_node_limit(count_workers + 1) {
if !license.check_node_limit(count_workers + 1) {
return Err(RegisterWorkerError::RequiresEnterpriseLicense);
}

Expand Down

0 comments on commit 7672e09

Please sign in to comment.