mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
27 lines
540 B
Go
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() {
|
|
}
|