Skip to content

chore(miner): enable registering for shutdown#145

Merged
calebjclark merged 1 commit intomainfrom
shutdown
Nov 28, 2022
Merged

chore(miner): enable registering for shutdown#145
calebjclark merged 1 commit intomainfrom
shutdown

Conversation

@blakebyrnes
Copy link
Contributor

Allow a user to control whether Miner auto-shuts down.

private readonly wsRoutes: [RegExp | string, IWsHandleFn][] = [];

constructor(addressHost = 'localhost') {
constructor(addressHost = 'localhost', shouldShutdownOnSignals = true) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems the second argument should be an options object, same as Hero. I'm going to go ahead and merge though.

@calebjclark calebjclark merged commit b532c1b into main Nov 28, 2022
@calebjclark calebjclark deleted the shutdown branch November 28, 2022 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments