remove unused method
This commit is contained in:
parent
8abcd18bbd
commit
b354379b9c
|
@ -1583,8 +1583,3 @@ func (engine *Engine) BufferSize(size int) *Session {
|
|||
session.isAutoClose = true
|
||||
return session.BufferSize(size)
|
||||
}
|
||||
|
||||
//Stats return the number of open connections to the database
|
||||
func (engine *Engine) Stats() int {
|
||||
return engine.DB().Stats().OpenConnections
|
||||
}
|
||||
|
|
|
@ -135,7 +135,7 @@ func (policy *LeastConnPolicy) Slave(g *EngineGroup) *Engine {
|
|||
connections := 0
|
||||
idx := 0
|
||||
for i, _ := range slaves {
|
||||
open_connections := slaves[i].Stats()
|
||||
open_connections := slaves[i].DB().Stats().OpenConnections
|
||||
if i == 0 {
|
||||
connections = open_connections
|
||||
idx = i
|
||||
|
|
Loading…
Reference in New Issue