Add some commenting to PermitPool

This commit is contained in:
Jeff Mitchell 2016-11-28 18:34:58 -05:00
parent efe97559ea
commit 736a4b111c

View file

@ -130,8 +130,7 @@ var builtinBackends = map[string]Factory{
"swift": newSwiftBackend,
}
// PermitPool is a wrapper around a semaphore library to keep things
// agnostic
// PermitPool is used to limit maximum outstanding requests
type PermitPool struct {
sem chan int
}