-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a context to the remote for shutdown. (#76)
* one major change. engine.WithRemote now takes a context, which is passed to the remote. It will shut down the remote when the context is cancelled. One minor change. The engine now has a GetLogger() which responds with the logger, so the remote can set up logging on its own. * make it easy to get a flood of logs when debugging tests. * wip; remote.Stop() returns sync.Waitgroup * fix the tests so they're green again. * track state so we don't stop or start twice. * forgot to set the state to running. tests are green again. * adjust the benchmark to changes in the API. * actor.NewEngine() now returns (*Engine, error) * return error from NewEngine if one or more of the options fail.
- Loading branch information
Showing
27 changed files
with
300 additions
and
89 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 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,12 @@ | ||
package actor | ||
|
||
import "fmt" | ||
|
||
type ErrInitFailed struct { | ||
Errors []error | ||
} | ||
|
||
func (e ErrInitFailed) Error() string { | ||
// Todo: make the error pretty | ||
return fmt.Sprintf("failed to initialize engine: %v", e.Errors) | ||
} |
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.