From 2da1751e1a42a7b52c0ff277a251013c381b4f1c Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 17 May 2014 13:41:44 -0500 Subject: [PATCH] Rename ConnectionPoolStat to ConnPoolStat --- conn_pool.go | 4 ++-- conn_pool_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conn_pool.go b/conn_pool.go index eaa58027..a82c55d4 100644 --- a/conn_pool.go +++ b/conn_pool.go @@ -21,7 +21,7 @@ type ConnPool struct { logger Logger } -type ConnectionPoolStat struct { +type ConnPoolStat struct { MaxConnections int // max simultaneous connections to use CurrentConnections int // current live connections AvailableConnections int // unused live connections @@ -124,7 +124,7 @@ func (p *ConnPool) Close() { } } -func (p *ConnPool) Stat() (s ConnectionPoolStat) { +func (p *ConnPool) Stat() (s ConnPoolStat) { p.cond.L.Lock() defer p.cond.L.Unlock() diff --git a/conn_pool_test.go b/conn_pool_test.go index 4c5045b0..ca91bf67 100644 --- a/conn_pool_test.go +++ b/conn_pool_test.go @@ -208,7 +208,7 @@ func TestPoolReleaseDiscardsDeadConnections(t *testing.T) { var c1, c2 *pgx.Conn var err error - var stat pgx.ConnectionPoolStat + var stat pgx.ConnPoolStat if c1, err = pool.Acquire(); err != nil { t.Fatalf("Unexpected error acquiring connection: %v", err)