Skip to content

Commit

Permalink
feat: new way of storage init
Browse files Browse the repository at this point in the history
  • Loading branch information
arifBurakDemiray committed Sep 21, 2023
1 parent a404bf5 commit 5071dc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ public class SDKStorage {

private Log L;
private CtxCore ctx;

private static final String FILE_NAME_PREFIX = "[CLY]";
private static final String FILE_NAME_SEPARATOR = "_";

private static final String EVENT_QUEUE_FILE_NAME = "event_queue";

protected SDKStorage() {
Expand All @@ -34,6 +32,7 @@ protected SDKStorage() {
public void init(CtxCore ctx, Log logger) {
this.L = logger;
this.ctx = ctx;
Storage.init();
}

public void stop(ly.count.sdk.java.internal.CtxCore ctx, boolean clear) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ly.count.sdk.java.internal;

import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;
Expand All @@ -15,7 +13,11 @@

public class Storage {

private static final Tasks tasks = new Tasks("storage", null);
private static Tasks tasks;

static void init() {
tasks = new Tasks("storage", null);
}

public static String name(Storable storable) {
return storable.storagePrefix() + "_" + storable.storageId();
Expand Down

0 comments on commit 5071dc4

Please sign in to comment.