diff --git a/network/connection.go b/network/connection.go index bbc088dc..f24a22e9 100644 --- a/network/connection.go +++ b/network/connection.go @@ -236,11 +236,11 @@ func (conn *Connection) Failed(reason string) { } // SetVerdict sets a new verdict for the connection, making sure it does not interfere with previous verdicts. -func (conn *Connection) SetVerdict(newVerdict Verdict, reason string, ctx interface{}) (ok bool) { +func (conn *Connection) SetVerdict(newVerdict Verdict, reason string, reasonCtx interface{}) (ok bool) { if newVerdict >= conn.Verdict { conn.Verdict = newVerdict conn.Reason = reason - conn.ReasonContext = ctx + conn.ReasonContext = reasonCtx return true } return false