mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
Various clean-ups
This commit is contained in:
parent
8ecc402d7c
commit
04c0acf71b
11 changed files with 11 additions and 37 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue