remove cruft from defer conn close
parent
8add49fd96
commit
bb97bb86d4
|
@ -87,7 +87,7 @@ func (m *MetaExecutor) executeOnNode(stmt influxql.Statement, database string, n
|
||||||
panic("wrong connection type in MetaExecutor")
|
panic("wrong connection type in MetaExecutor")
|
||||||
}
|
}
|
||||||
// Return connection to pool by "closing" it.
|
// Return connection to pool by "closing" it.
|
||||||
defer func(conn net.Conn) { conn.Close() }(conn)
|
defer conn.Close()
|
||||||
|
|
||||||
// Build RPC request.
|
// Build RPC request.
|
||||||
var request ExecuteStatementRequest
|
var request ExecuteStatementRequest
|
||||||
|
|
Loading…
Reference in New Issue