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
b6e99dee
Commit
b6e99dee
authored
Jun 23, 2017
by
Bas van Kervel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whisper: renamed Info#Message to Info#Messages
parent
c62d5422
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
api.go
whisper/whisperv5/api.go
+2
-2
No files found.
whisper/whisperv5/api.go
View file @
b6e99dee
...
@@ -94,7 +94,7 @@ func (api *PublicWhisperAPI) Version(ctx context.Context) string {
...
@@ -94,7 +94,7 @@ func (api *PublicWhisperAPI) Version(ctx context.Context) string {
// Info contains diagnostic information.
// Info contains diagnostic information.
type
Info
struct
{
type
Info
struct
{
Memory
int
`json:"memory"`
// Memory size of the floating messages in bytes.
Memory
int
`json:"memory"`
// Memory size of the floating messages in bytes.
Message
int
`json:"message"`
// Number of floating messages.
Message
s
int
`json:"messages"`
// Number of floating messages.
MinPow
float64
`json:"minPow"`
// Minimal accepted PoW
MinPow
float64
`json:"minPow"`
// Minimal accepted PoW
MaxMessageSize
uint32
`json:"maxMessageSize"`
// Maximum accepted message size
MaxMessageSize
uint32
`json:"maxMessageSize"`
// Maximum accepted message size
}
}
...
@@ -104,7 +104,7 @@ func (api *PublicWhisperAPI) Info(ctx context.Context) Info {
...
@@ -104,7 +104,7 @@ func (api *PublicWhisperAPI) Info(ctx context.Context) Info {
stats
:=
api
.
w
.
Stats
()
stats
:=
api
.
w
.
Stats
()
return
Info
{
return
Info
{
Memory
:
stats
.
memoryUsed
,
Memory
:
stats
.
memoryUsed
,
Message
:
len
(
api
.
w
.
messageQueue
)
+
len
(
api
.
w
.
p2pMsgQueue
),
Message
s
:
len
(
api
.
w
.
messageQueue
)
+
len
(
api
.
w
.
p2pMsgQueue
),
MinPow
:
api
.
w
.
MinPow
(),
MinPow
:
api
.
w
.
MinPow
(),
MaxMessageSize
:
api
.
w
.
MaxMessageSize
(),
MaxMessageSize
:
api
.
w
.
MaxMessageSize
(),
}
}
...
...
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