-
Notifications
You must be signed in to change notification settings - Fork 273
add object as subscription params #623
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
Open
nicolaiunrein
wants to merge
7
commits into
paritytech:master
Choose a base branch
from
AuxControl:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1a18be7
add object as subscription params
nicolaiunrein 014b1ec
Return error when unsubscribing from invalid subscription id (#619)
jstarry 3a023f5
add object as notify params
nicolaiunrein 609d7a6
Bump minor version. (#624)
tomusdrw 7c5d9f5
add object as subscription params
nicolaiunrein 9b0fdf5
add object as notify params
nicolaiunrein 054d529
Merge branch 'master' of github.com:AuxControl/jsonrpc
nicolaiunrein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
error: Invalid attribute parameter(s): 'Xalias'. Expected 'alias' | ||
--> $DIR/attr-invalid-meta-list-names.rs:5:2 | ||
| | ||
5 | /// Returns a protocol version | ||
| _____^ | ||
5 | / /// Returns a protocol version | ||
6 | | #[rpc(name = "protocolVersion", Xalias("alias"))] | ||
7 | | fn protocol_version(&self) -> Result<String>; | ||
| |_________________________________________________^ |
This file contains hidden or 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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
error: Invalid attribute parameter(s): 'Xmeta'. Expected 'meta, raw_params' | ||
--> $DIR/attr-invalid-meta-words.rs:5:2 | ||
| | ||
5 | /// Returns a protocol version | ||
| _____^ | ||
5 | / /// Returns a protocol version | ||
6 | | #[rpc(name = "protocolVersion", Xmeta)] | ||
7 | | fn protocol_version(&self) -> Result<String>; | ||
| |_________________________________________________^ |
This file contains hidden or 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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
error: Invalid attribute parameter(s): 'Xname'. Expected 'name, returns, params' | ||
--> $DIR/attr-invalid-name-values.rs:5:2 | ||
| | ||
5 | /// Returns a protocol version | ||
| _____^ | ||
5 | / /// Returns a protocol version | ||
6 | | #[rpc(Xname = "protocolVersion")] | ||
7 | | fn protocol_version(&self) -> Result<String>; | ||
| |_________________________________________________^ |
This file contains hidden or 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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
error: rpc attribute should have a name e.g. `name = "method_name"` | ||
--> $DIR/attr-missing-rpc-name.rs:5:2 | ||
| | ||
5 | /// Returns a protocol version | ||
| _____^ | ||
5 | / /// Returns a protocol version | ||
6 | | #[rpc] | ||
7 | | fn protocol_version(&self) -> Result<String>; | ||
| |_________________________________________________^ |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -3,12 +3,12 @@ name = "jsonrpc-pubsub-examples" | |
description = "Examples of Publish-Subscribe extension for jsonrpc." | ||
homepage = "https://github.com/paritytech/jsonrpc" | ||
repository = "https://github.com/paritytech/jsonrpc" | ||
version = "17.0.0" | ||
version = "17.1.0" | ||
authors = ["tomusdrw <[email protected]>"] | ||
license = "MIT" | ||
|
||
[dependencies] | ||
jsonrpc-core = { version = "17.0", path = "../../core" } | ||
jsonrpc-pubsub = { version = "17.0", path = "../" } | ||
jsonrpc-ws-server = { version = "17.0", path = "../../ws" } | ||
jsonrpc-ipc-server = { version = "17.0", path = "../../ipc" } | ||
jsonrpc-core = { version = "17.1", path = "../../core" } | ||
jsonrpc-pubsub = { version = "17.1", path = "../" } | ||
jsonrpc-ws-server = { version = "17.1", path = "../../ws" } | ||
jsonrpc-ipc-server = { version = "17.1", path = "../../ipc" } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add this to
fn notify
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will do it tomorrow!