forked from thrasher-corp/gocryptotrader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Engine/GCTScript: Refactor script manager (thrasher-corp#580)
* refactor script manager * remove singleton GCTScriptConfig * create constant for ".gct" extension * move GctScriptManager into vm package * reduce script manager global dependencies * use manager struct to store runtime override values * enable/disable scripting subsystem now doesn't store the setting in config (aligned with other subsystems) * setting max VMs via start option doesn't change config * instantiate scriptmanager as part of creating a new Engine * script manager config is now set during instantiation * run script manager when enabled in conf or explicitly enabled * use the Started() method to check if script manager is running * in tests set script manager as running * script manager adjustments * create manager before attempting overrides * check for nil config when creating script manager * fix script manager waitgroup counter increased too late * move autoload() function to autoload.go * add tests to script manager
- Loading branch information
Showing
19 changed files
with
520 additions
and
253 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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.