good morning!!!!

Skip to content
Snippets Groups Projects
Commit b6e99dee authored by Bas van Kervel's avatar Bas van Kervel
Browse files

whisper: renamed Info#Message to Info#Messages

parent c62d5422
No related branches found
No related tags found
No related merge requests found
...@@ -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. Messages 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), Messages: len(api.w.messageQueue) + len(api.w.p2pMsgQueue),
MinPow: api.w.MinPow(), MinPow: api.w.MinPow(),
MaxMessageSize: api.w.MaxMessageSize(), MaxMessageSize: api.w.MaxMessageSize(),
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment