mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Various clean-ups
This commit is contained in:
parent
8ecc402d7c
commit
04c0acf71b
11 changed files with 11 additions and 37 deletions
|
@ -23,7 +23,7 @@ type SessionEntry struct {
|
|||
Uptime float64 `json:"uptime"`
|
||||
}
|
||||
|
||||
func (a *AdminSocket) getSessionsHandler(req *GetSessionsRequest, res *GetSessionsResponse) error {
|
||||
func (a *AdminSocket) getSessionsHandler(_ *GetSessionsRequest, res *GetSessionsResponse) error {
|
||||
sessions := a.core.GetSessions()
|
||||
res.Sessions = make([]SessionEntry, 0, len(sessions))
|
||||
for _, s := range sessions {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue