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 authored Mar 10, 2024
1 parent a80935f commit 074c0e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

## Fixes and Improvements

# 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 @@ -164,7 +164,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 074c0e7

Please sign in to comment.