diff options
author | Bas van Kervel <basvankervel@gmail.com> | 2017-06-23 15:18:02 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@gmail.com> | 2017-06-23 15:18:02 +0800 |
commit | b6e99deee9517c7571ab31c950b0108e94486a2e (patch) | |
tree | 1bcb3239fe022b9d3d1587faf9e2c9b23e9dc5ea /whisper/whisperv5 | |
parent | c62d5422bb24cfa53ee480330f9d355f68c071a4 (diff) | |
download | dexon-b6e99deee9517c7571ab31c950b0108e94486a2e.tar dexon-b6e99deee9517c7571ab31c950b0108e94486a2e.tar.gz dexon-b6e99deee9517c7571ab31c950b0108e94486a2e.tar.bz2 dexon-b6e99deee9517c7571ab31c950b0108e94486a2e.tar.lz dexon-b6e99deee9517c7571ab31c950b0108e94486a2e.tar.xz dexon-b6e99deee9517c7571ab31c950b0108e94486a2e.tar.zst dexon-b6e99deee9517c7571ab31c950b0108e94486a2e.zip |
whisper: renamed Info#Message to Info#Messages
Diffstat (limited to 'whisper/whisperv5')
-rw-r--r-- | whisper/whisperv5/api.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/whisper/whisperv5/api.go b/whisper/whisperv5/api.go index f3d25f781..5b84b99eb 100644 --- a/whisper/whisperv5/api.go +++ b/whisper/whisperv5/api.go @@ -94,7 +94,7 @@ func (api *PublicWhisperAPI) Version(ctx context.Context) string { // Info contains diagnostic information. type Info struct { 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 MaxMessageSize uint32 `json:"maxMessageSize"` // Maximum accepted message size } @@ -104,7 +104,7 @@ func (api *PublicWhisperAPI) Info(ctx context.Context) Info { stats := api.w.Stats() return Info{ 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(), MaxMessageSize: api.w.MaxMessageSize(), } |