mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
```bash for file in `cat diffys`; do printf '%s\n%s\n' "// Copyright 2021 Molecula Corp. All rights reserved." "$(cat $file)" >$file; done ```
24 lines
674 B
Go
24 lines
674 B
Go
// Copyright 2021 Molecula Corp. All rights reserved.
|
|
package pilosa
|
|
|
|
// Ensure nopGCNotifier implements interface.
|
|
var _ GCNotifier = &nopGCNotifier{}
|
|
|
|
// GCNotifier represents an interface for garbage collection notificationss.
|
|
type GCNotifier interface {
|
|
Close()
|
|
AfterGC() <-chan struct{}
|
|
}
|
|
|
|
// NopGCNotifier represents a GCNotifier that doesn't do anything.
|
|
var NopGCNotifier GCNotifier = &nopGCNotifier{}
|
|
|
|
type nopGCNotifier struct{}
|
|
|
|
// Close is a no-op implementation of GCNotifier Close method.
|
|
func (n *nopGCNotifier) Close() {}
|
|
|
|
// AfterGC is a no-op implementation of GCNotifier AfterGC method.
|
|
func (n *nopGCNotifier) AfterGC() <-chan struct{} {
|
|
return nil
|
|
}
|