-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal pool implementation from table pool
- Loading branch information
1 parent
cd58c33
commit e6d948b
Showing
40 changed files
with
2,474 additions
and
1,772 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,11 @@ | ||
package pool | ||
|
||
const DefaultLimit = 50 | ||
import ( | ||
"time" | ||
) | ||
|
||
var defaultTrace = &Trace{ | ||
OnNew: func(info *NewStartInfo) func(info *NewDoneInfo) { | ||
return func(info *NewDoneInfo) { | ||
} | ||
}, | ||
OnClose: func(info *CloseStartInfo) func(info *CloseDoneInfo) { | ||
return func(info *CloseDoneInfo) { | ||
} | ||
}, | ||
OnTry: func(info *TryStartInfo) func(info *TryDoneInfo) { | ||
return func(info *TryDoneInfo) { | ||
} | ||
}, | ||
OnWith: func(info *WithStartInfo) func(info *WithDoneInfo) { | ||
return func(info *WithDoneInfo) { | ||
} | ||
}, | ||
OnPut: func(info *PutStartInfo) func(info *PutDoneInfo) { | ||
return func(info *PutDoneInfo) { | ||
} | ||
}, | ||
OnGet: func(info *GetStartInfo) func(info *GetDoneInfo) { | ||
return func(info *GetDoneInfo) { | ||
} | ||
}, | ||
OnChange: func(info ChangeInfo) {}, | ||
} | ||
const ( | ||
DefaultLimit = 50 | ||
defaultCreateTimeout = 5 * time.Second | ||
defaultCloseTimeout = time.Second | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.