Various clean-ups

This commit is contained in:
Neil Alexander 2024-07-20 12:31:58 +01:00
parent 8ecc402d7c
commit 04c0acf71b
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
11 changed files with 11 additions and 37 deletions

View file

@ -32,7 +32,7 @@ type PeerEntry struct {
LastError string `json:"last_error,omitempty"`
}
func (a *AdminSocket) getPeersHandler(req *GetPeersRequest, res *GetPeersResponse) error {
func (a *AdminSocket) getPeersHandler(_ *GetPeersRequest, res *GetPeersResponse) error {
peers := a.core.GetPeers()
res.Peers = make([]PeerEntry, 0, len(peers))
for _, p := range peers {