Removed Opts from echovault. NewEchoVault now entirely uses the option pattern

This commit is contained in:
Kelvin Mwinuka
2024-03-25 17:22:18 +08:00
parent fa42da526f
commit 54d0ae700a
13 changed files with 630 additions and 629 deletions

View File

@@ -31,12 +31,12 @@ import (
var mockServer *echovault.EchoVault
func init() {
mockServer = echovault.NewEchoVault(echovault.Opts{
Config: utils.Config{
mockServer = echovault.NewEchoVault(
echovault.WithConfig(utils.Config{
DataDir: "",
EvictionPolicy: utils.NoEviction,
},
})
}),
)
}
func Test_HandleZADD(t *testing.T) {