Skip to content

Commit

Permalink
Rename storeConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
bamzedev committed Jan 7, 2025
1 parent 7788da2 commit 059d5b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/network/transport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (t *Transport) handleConnection(qConn quic.Connection) *Conn {
return nil
}

conn := t.manageConnection(peerKey, qConn)
conn := t.storeConnection(peerKey, qConn)

if err := t.config.Handler.OnConnection(conn); err != nil {
t.cleanup(peerKey)
Expand All @@ -279,8 +279,8 @@ func (t *Transport) handleConnection(qConn quic.Connection) *Conn {
return conn
}

// manageConnection handles connection storage and replacement
func (t *Transport) manageConnection(peerKey ed25519.PublicKey, qConn quic.Connection) *Conn {
// storeConnection handles connection storage and replacement
func (t *Transport) storeConnection(peerKey ed25519.PublicKey, qConn quic.Connection) *Conn {
t.mu.Lock()
defer t.mu.Unlock()

Expand Down

0 comments on commit 059d5b5

Please sign in to comment.