Skip to content

Commit 35771cd

Browse files
Added comment for idCounter.
1 parent a69dfc6 commit 35771cd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎chapter7/patterns/pool/main/main.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ func (dbConn *dbConnection) Close() {
3030
fmt.Println("Close: Connection", dbConn.ID)
3131
}
3232

33+
// isCounter provides support for giving each
34+
// connection a unique id.
3335
var idCounter int32
3436

3537
// createConnection is a factory method called by the pool

0 commit comments

Comments
 (0)