chyezh b9237280c2
enhance: wal interface definition (#33745)
issue: #33285

---------

Signed-off-by: chyezh <chyezh@outlook.com>
2024-06-24 10:34:12 +08:00

27 lines
540 B
Go

//go:build test
// +build test
package walimplstest
import (
"context"
"github.com/milvus-io/milvus/internal/streamingnode/server/wal/helper"
"github.com/milvus-io/milvus/internal/streamingnode/server/wal/walimpls"
)
var _ walimpls.OpenerImpls = &opener{}
type opener struct{}
func (*opener) Open(ctx context.Context, opt *walimpls.OpenOption) (walimpls.WALImpls, error) {
l := getOrCreateLogs(opt.Channel.GetName())
return &walImpls{
WALHelper: *helper.NewWALHelper(opt),
datas: l,
}, nil
}
func (*opener) Close() {
}