Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jail: sendSignal handler #310

Merged
merged 1 commit into from
Sep 14, 2017
Merged

jail: sendSignal handler #310

merged 1 commit into from
Sep 14, 2017

Conversation

rasom
Copy link
Collaborator

@rasom rasom commented Sep 12, 2017

The purpose of PR is to define one handler for all signals that can be sent from the jail in order to provide ability to add new kind of signal without making changes on status-go side in future.

}

func makeSendMessageHandler(chatID string) func(call otto.FunctionCall) (response otto.Value) {
func makeSignalHandler(chatID string) func(call otto.FunctionCall) (response otto.Value) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Signature can be shortened to:

func makeSignalHandler(chatID string) func(call otto.FunctionCall) otto.Value

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@tiabc tiabc merged commit 03b8684 into develop Sep 14, 2017
@adambabik adambabik deleted the feature/signal-event branch December 27, 2019 10:01
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.

4 participants