Formatting / Linting
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
8d7052bb8d
commit
f2ad64fe8b
|
@ -1,14 +1,13 @@
|
||||||
package servers
|
package servers
|
||||||
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"cwtch.im/cwtch/event"
|
"cwtch.im/cwtch/event"
|
||||||
"cwtch.im/cwtch/model"
|
"cwtch.im/cwtch/model"
|
||||||
"cwtch.im/cwtch/model/attr"
|
"cwtch.im/cwtch/model/attr"
|
||||||
"cwtch.im/cwtch/model/constants"
|
"cwtch.im/cwtch/model/constants"
|
||||||
"cwtch.im/cwtch/peer"
|
"cwtch.im/cwtch/peer"
|
||||||
"cwtch.im/cwtch/settings"
|
|
||||||
"cwtch.im/cwtch/protocol/connections"
|
"cwtch.im/cwtch/protocol/connections"
|
||||||
|
"cwtch.im/cwtch/settings"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -46,7 +45,6 @@ func (f *Functionality) OnEvent(ev event.Event, profile peer.CwtchPeer) {
|
||||||
// TODO: do we need a secondary heartbeat for less common updates?
|
// TODO: do we need a secondary heartbeat for less common updates?
|
||||||
case event.Heartbeat:
|
case event.Heartbeat:
|
||||||
f.PublishServerUpdate(profile)
|
f.PublishServerUpdate(profile)
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -77,7 +75,6 @@ type SyncStatus struct {
|
||||||
LastMessageTime string `json:"lastMessageTime"`
|
LastMessageTime string `json:"lastMessageTime"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Server encapsulates the information needed to represent a server...
|
// Server encapsulates the information needed to represent a server...
|
||||||
type Server struct {
|
type Server struct {
|
||||||
Onion string `json:"onion"`
|
Onion string `json:"onion"`
|
||||||
|
|
Loading…
Reference in New Issue