good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
b6e99dee
Commit
b6e99dee
authored
7 years ago
by
Bas van Kervel
Browse files
Options
Downloads
Patches
Plain Diff
whisper: renamed Info#Message to Info#Messages
parent
c62d5422
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
whisper/whisperv5/api.go
+2
-2
2 additions, 2 deletions
whisper/whisperv5/api.go
with
2 additions
and
2 deletions
whisper/whisperv5/api.go
+
2
−
2
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:"message
s
"`
// 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
(),
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment