Skip to content

Commit

Permalink
Add IN_MEMORY case to switches
Browse files Browse the repository at this point in the history
  • Loading branch information
zrdzn committed Nov 4, 2023
1 parent ab4e381 commit 9bc24de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public Storage createStorage() {
storageType = StorageType.POSTGRESQL;

break;
case IN_MEMORY:
default:
throw new IllegalArgumentException("There is no such storage type.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public UserSettingFacade createUserSettingFacade() {
return new UserSettingFacade(userSettingCache, new SqliteUserSettingRepository(this.storage.getDataSource(), this.gson));
case POSTGRESQL:
return new UserSettingFacade(userSettingCache, new PostgresUserSettingRepository(this.storage.getDataSource(), this.gson));
case IN_MEMORY:
default:
return new UserSettingFacade(userSettingCache, new InMemoryUserSettingRepository());
}
Expand Down

0 comments on commit 9bc24de

Please sign in to comment.