remove cruft from defer conn close

pull/5753/head
David Norton 2016-02-22 14:44:12 -05:00
parent 8add49fd96
commit bb97bb86d4
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ func (m *MetaExecutor) executeOnNode(stmt influxql.Statement, database string, n
panic("wrong connection type in MetaExecutor")
}
// Return connection to pool by "closing" it.
defer func(conn net.Conn) { conn.Close() }(conn)
defer conn.Close()
// Build RPC request.
var request ExecuteStatementRequest