Skip to content

Commit 107a283

Browse files
authored
fix: cicd tests (#985)
* fix: test * fix: test * fix: comment * fix: pr comments
1 parent 9cc802c commit 107a283

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/main/java/io/supertokens/Main.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@
3838
import io.supertokens.pluginInterface.exceptions.DbInitException;
3939
import io.supertokens.pluginInterface.exceptions.InvalidConfigException;
4040
import io.supertokens.pluginInterface.exceptions.StorageQueryException;
41-
import io.supertokens.pluginInterface.multitenancy.TenantConfig;
4241
import io.supertokens.pluginInterface.multitenancy.TenantIdentifier;
43-
import io.supertokens.session.refreshToken.RefreshTokenKey;
44-
import io.supertokens.signingkeys.AccessTokenSigningKey;
45-
import io.supertokens.signingkeys.JWTSigningKey;
46-
import io.supertokens.signingkeys.SigningKeys;
4742
import io.supertokens.storageLayer.StorageLayer;
4843
import io.supertokens.version.Version;
4944
import io.supertokens.webserver.Webserver;
@@ -210,12 +205,9 @@ private void init() throws IOException, StorageQueryException {
210205
MultitenancyHelper.getInstance(this).loadConfig(new ArrayList<>());
211206

212207
if (!StorageLayer.isInMemDb(this)) {
213-
// we want to load storage layer once again so that the base storage also contains the right
214-
// tenant identifier set passed to the init. So we close the base storage layer and also clear
215-
// all the resources for storage layer
216-
StorageLayer.getBaseStorage(this).stopLogging();
208+
// we want to init storage connection once again so that the base storage also contains the right
209+
// tenant identifier set passed to the init. So we call the resetPostConnectCallbackForBaseTenantStorage.
217210
StorageLayer.getBaseStorage(this).close();
218-
this.getResourceDistributor().clearAllResourcesWithResourceKey(StorageLayer.RESOURCE_KEY);
219211
}
220212

221213
MultitenancyHelper.getInstance(this).loadStorageLayer();

0 commit comments

Comments
 (0)