Skip to content

Commit

Permalink
remove in memory store
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fischer committed Dec 31, 2024
1 parent 7a71f1b commit f7bda52
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions management/server/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ const (
FileStoreEngine Engine = "jsonfile"
SqliteStoreEngine Engine = "sqlite"
PostgresStoreEngine Engine = "postgres"
// InMemoryStoreEngine is used for testing purposes only.
InMemoryStoreEngine Engine = "memory"

postgresDsnEnv = "NETBIRD_STORE_ENGINE_POSTGRES_DSN"
)
Expand All @@ -185,7 +183,7 @@ func getStoreEngineFromEnv() Engine {
}

value := Engine(strings.ToLower(kind))
if value == SqliteStoreEngine || value == PostgresStoreEngine || value == InMemoryStoreEngine {
if value == SqliteStoreEngine || value == PostgresStoreEngine {
return value
}

Expand Down Expand Up @@ -303,9 +301,6 @@ func NewTestStoreFromSQL(ctx context.Context, filename string, dataDir string) (
}

file := filepath.Join(dataDir, storeStr)
if kind == InMemoryStoreEngine {
file = ":memory:"
}
db, err := gorm.Open(sqlite.Open(file), getGormConfig())
if err != nil {
return nil, nil, err
Expand Down

0 comments on commit f7bda52

Please sign in to comment.