eventstore: QueryEvents() to take a maxLimit param now so everything is clearer.
This commit is contained in:
@@ -14,8 +14,7 @@ type IndexingLayer struct {
|
||||
isInitialized bool
|
||||
name string
|
||||
|
||||
MaxLimit int
|
||||
mmmm *MultiMmapManager
|
||||
mmmm *MultiMmapManager
|
||||
|
||||
// this is stored in the knownLayers db as a value, and used to keep track of which layer owns each event
|
||||
id uint16
|
||||
@@ -53,10 +52,6 @@ func (il *IndexingLayer) Init() error {
|
||||
|
||||
path := filepath.Join(il.mmmm.Dir, il.name)
|
||||
|
||||
if il.MaxLimit == 0 {
|
||||
il.MaxLimit = 500
|
||||
}
|
||||
|
||||
// open lmdb
|
||||
env, err := lmdb.NewEnv()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user