mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 23:22:25 -05:00
[chore] de-interface{} the federator and dereferencer structs (#2285)
* de-interface{} the federator and dereferencer structs
* fix broken type signatures
This commit is contained in:
parent
3dcc94940d
commit
69ba9a79a1
55 changed files with 151 additions and 199 deletions
|
|
@ -21,7 +21,7 @@ import (
|
|||
"net/url"
|
||||
)
|
||||
|
||||
func (d *deref) Handshaking(username string, remoteAccountID *url.URL) bool {
|
||||
func (d *Dereferencer) Handshaking(username string, remoteAccountID *url.URL) bool {
|
||||
d.handshakesMu.Lock()
|
||||
defer d.handshakesMu.Unlock()
|
||||
|
||||
|
|
@ -51,7 +51,7 @@ func (d *deref) Handshaking(username string, remoteAccountID *url.URL) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (d *deref) startHandshake(username string, remoteAccountID *url.URL) {
|
||||
func (d *Dereferencer) startHandshake(username string, remoteAccountID *url.URL) {
|
||||
d.handshakesMu.Lock()
|
||||
defer d.handshakesMu.Unlock()
|
||||
|
||||
|
|
@ -68,7 +68,7 @@ func (d *deref) startHandshake(username string, remoteAccountID *url.URL) {
|
|||
d.handshakes[username] = remoteIDs
|
||||
}
|
||||
|
||||
func (d *deref) stopHandshake(username string, remoteAccountID *url.URL) {
|
||||
func (d *Dereferencer) stopHandshake(username string, remoteAccountID *url.URL) {
|
||||
d.handshakesMu.Lock()
|
||||
defer d.handshakesMu.Unlock()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue