Rename consense -> prime

This commit is contained in:
Adam Harrison committed 2016-04-14 12:46:03 +01:00
1 parent e9ca0ffad1
commit a09986baa2
6 files changed
+20 -20

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
package ipam
type prime struct {
resultChan chan<- struct{}
}
func (c *prime) Try(alloc *Allocator) bool {
if !alloc.ring.Empty() {
close(c.resultChan)
return true
}
alloc.establishRing()
return false
}
func (c *prime) Cancel() {
close(c.resultChan)
}
func (c *prime) ForContainer(ident string) bool {
return false
}