Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Apr 19, 2024
1 parent 21e6609 commit 508f91c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/main/java/io/supertokens/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,7 @@
import io.supertokens.pluginInterface.exceptions.DbInitException;
import io.supertokens.pluginInterface.exceptions.InvalidConfigException;
import io.supertokens.pluginInterface.exceptions.StorageQueryException;
import io.supertokens.pluginInterface.multitenancy.TenantConfig;
import io.supertokens.pluginInterface.multitenancy.TenantIdentifier;
import io.supertokens.session.refreshToken.RefreshTokenKey;
import io.supertokens.signingkeys.AccessTokenSigningKey;
import io.supertokens.signingkeys.JWTSigningKey;
import io.supertokens.signingkeys.SigningKeys;
import io.supertokens.storageLayer.StorageLayer;
import io.supertokens.version.Version;
import io.supertokens.webserver.Webserver;
Expand Down Expand Up @@ -211,7 +206,7 @@ private void init() throws IOException, StorageQueryException {

// we want to load storage layer once again so that the base storage also contains the right
// tenant identifier set passed to the init. So we call the resetPostConnectCallbackForBaseTenantStorage.
StorageLayer.getBaseStorage(this).resetPostConnectCallbackForBaseTenantStorage();
StorageLayer.getBaseStorage(this).resetConnectionPoolForReinitWithAllTenantsForBaseStorage();

MultitenancyHelper.getInstance(this).loadStorageLayer();
} catch (InvalidConfigException e) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/supertokens/inmemorydb/Start.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public void initStorage(boolean shouldWait, List<TenantIdentifier> tenantIdentif
}

@Override
public void resetPostConnectCallbackForBaseTenantStorage() {
public void resetConnectionPoolForReinitWithAllTenantsForBaseStorage() {
// no op
}

Expand Down

0 comments on commit 508f91c

Please sign in to comment.