Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
f4ff4268
Unverified
Commit
f4ff4268
authored
Mar 02, 2022
by
s7v7nislands
Committed by
GitHub
Mar 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpc: fix godoc (#24488)
Co-authored-by:
seven
<
seven@nodereal.io
>
parent
7307d97a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
client.go
rpc/client.go
+2
-2
subscription.go
rpc/subscription.go
+1
-1
No files found.
rpc/client.go
View file @
f4ff4268
...
...
@@ -186,7 +186,7 @@ func DialContext(ctx context.Context, rawurl string) (*Client, error) {
}
}
// Client retrieves the client from the context, if any. This can be used to perform
// Client
FromContext
retrieves the client from the context, if any. This can be used to perform
// 'reverse calls' in a handler method.
func
ClientFromContext
(
ctx
context
.
Context
)
(
*
Client
,
bool
)
{
client
,
ok
:=
ctx
.
Value
(
clientContextKey
{})
.
(
*
Client
)
...
...
@@ -333,7 +333,7 @@ func (c *Client) BatchCall(b []BatchElem) error {
return
c
.
BatchCallContext
(
ctx
,
b
)
}
// BatchCall sends all given requests as a single batch and waits for the server
// BatchCall
Context
sends all given requests as a single batch and waits for the server
// to return a response for all of them. The wait duration is bounded by the
// context's deadline.
//
...
...
rpc/subscription.go
View file @
f4ff4268
...
...
@@ -34,7 +34,7 @@ import (
var
(
// ErrNotificationsUnsupported is returned when the connection doesn't support notifications
ErrNotificationsUnsupported
=
errors
.
New
(
"notifications not supported"
)
// Err
Notifica
tionNotFound is returned when the notification for the given id is not found
// Err
Subscrip
tionNotFound is returned when the notification for the given id is not found
ErrSubscriptionNotFound
=
errors
.
New
(
"subscription not found"
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment