summaryrefslogtreecommitdiff
path: root/internal/federation/dereferencing/handshake.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2023-10-23 10:58:13 +0100
committerLibravatar GitHub <noreply@github.com>2023-10-23 10:58:13 +0100
commit69ba9a79a13b21af98d67bbd0802aecb49147f3f (patch)
treef9dcd19ff6ef3711aadb684633cd0100fceb6b27 /internal/federation/dereferencing/handshake.go
parent[chore]: Bump github.com/coreos/go-oidc/v3 from 3.6.0 to 3.7.0 (#2284) (diff)
downloadgotosocial-69ba9a79a13b21af98d67bbd0802aecb49147f3f.tar.xz
[chore] de-interface{} the federator and dereferencer structs (#2285)
* de-interface{} the federator and dereferencer structs * fix broken type signatures
Diffstat (limited to 'internal/federation/dereferencing/handshake.go')
-rw-r--r--internal/federation/dereferencing/handshake.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/federation/dereferencing/handshake.go b/internal/federation/dereferencing/handshake.go
index 96d8d349f..1180ff140 100644
--- a/internal/federation/dereferencing/handshake.go
+++ b/internal/federation/dereferencing/handshake.go
@@ -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()