From 57f8c620c0d4f8ac484bd0117c88c5f6bae86c4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Wed, 24 Jul 2024 16:34:47 +0200 Subject: [PATCH] Typo fix --- relay/server/relay.go | 12 ++++++------ relay/server/server.go | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/relay/server/relay.go b/relay/server/relay.go index 6dca3e62c..c0d61ad03 100644 --- a/relay/server/relay.go +++ b/relay/server/relay.go @@ -18,8 +18,8 @@ type Relay struct { metrics *metrics.Metrics validator auth.Validator - store *Store - instaceURL string + store *Store + instanceURL string closed bool closeMu sync.RWMutex @@ -38,9 +38,9 @@ func NewRelay(meter metric.Meter, exposedAddress string, tlsSupport bool, valida } if tlsSupport { - r.instaceURL = fmt.Sprintf("rels://%s", exposedAddress) + r.instanceURL = fmt.Sprintf("rels://%s", exposedAddress) } else { - r.instaceURL = fmt.Sprintf("rel://%s", exposedAddress) + r.instanceURL = fmt.Sprintf("rel://%s", exposedAddress) } return r, nil @@ -120,7 +120,7 @@ func (r *Relay) handShake(conn net.Conn) ([]byte, error) { return nil, err } - msg, _ := messages.MarshalHelloResponse(r.instaceURL) + msg, _ := messages.MarshalHelloResponse(r.instanceURL) _, err = conn.Write(msg) if err != nil { return nil, err @@ -129,5 +129,5 @@ func (r *Relay) handShake(conn net.Conn) ([]byte, error) { } func (r *Relay) InstanceURL() string { - return r.instaceURL + return r.instanceURL } diff --git a/relay/server/server.go b/relay/server/server.go index 0eff59eb2..80d1ba00d 100644 --- a/relay/server/server.go +++ b/relay/server/server.go @@ -91,5 +91,5 @@ func (r *Server) Close() error { } func (r *Server) InstanceURL() string { - return r.relay.instaceURL + return r.relay.instanceURL }