-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
begin restoring gaggle files and logic
- Loading branch information
1 parent
9a64208
commit c694197
Showing
2 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//use crate::{GooseAttack, GooseConfiguration, GooseUserCommand, CANCELED, SHUTDOWN_GAGGLE}; | ||
use crate::{GooseAttack, GooseError}; | ||
|
||
impl GooseAttack { | ||
/// Main manager loop. | ||
pub(crate) async fn manager_main( | ||
mut self, | ||
) -> Result<GooseAttack, GooseError> { | ||
// The GooseAttackRunState is used while spawning and running the | ||
// GooseUser threads that generate the load test. | ||
// @TODO: should this be replaced with a GooseAttackManagerState ? | ||
let mut goose_attack_run_state = self | ||
.initialize_attack() | ||
.await | ||
.expect("failed to initialize GooseAttackRunState"); | ||
|
||
assert!(goose_attack_run_state.controller_channel_rx.is_some()); | ||
|
||
Ok(self) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters