refactor: use specific repo types instead of interfaces

This commit is contained in:
Anton
2024-04-13 23:03:47 +05:00
parent f2cb3f65f8
commit 4acc6ed711
92 changed files with 456 additions and 530 deletions

View File

@@ -6,6 +6,7 @@ import (
"github.com/nalgeon/redka"
"github.com/nalgeon/redka/internal/core"
"github.com/nalgeon/redka/internal/rstring"
"github.com/nalgeon/redka/internal/testx"
)
@@ -505,7 +506,7 @@ func TestIncrFloat(t *testing.T) {
})
}
func getDB(tb testing.TB) (*redka.DB, redka.Strings) {
func getDB(tb testing.TB) (*redka.DB, *rstring.DB) {
tb.Helper()
db, err := redka.Open(":memory:")
if err != nil {