Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Add use before initialization checks to the ObjectPool #45

Merged
merged 2 commits into from
Feb 7, 2017

Conversation

robskillington
Copy link
Contributor

@coveralls
Copy link

coveralls commented Feb 7, 2017

Coverage Status

Coverage increased (+0.2%) to 84.948% when pulling 0af0c9c on add-pool-before-use-protection into 6c0871e on master.

pool/types.go Outdated
@@ -56,6 +56,10 @@ type CheckedObjectPool interface {
Get() checked.ReadWriteRef
}

// OnPoolAccessError is a function to call when a pool access error occurs,
// such as get or put before the pool is initialized.
type OnPoolAccessError func(err error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the convention is to name is OnPoolAccessErrorFn

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing.

Copy link
Contributor

@xichen2020 xichen2020 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@coveralls
Copy link

coveralls commented Feb 7, 2017

Coverage Status

Coverage increased (+0.2%) to 84.948% when pulling 0b962e6 on add-pool-before-use-protection into 6c0871e on master.

@robskillington robskillington merged commit 41e3f05 into master Feb 7, 2017
@robskillington robskillington deleted the add-pool-before-use-protection branch February 7, 2017 23:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants