Skip to content

Commit

Permalink
fix: remove async from cache load and store
Browse files Browse the repository at this point in the history
  • Loading branch information
bgiori committed Nov 3, 2023
1 parent f9fb923 commit 0057076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/experiment-browser/src/storage/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class LoadStoreCache<V> {
this.cache = {};
}

public async load() {
public load() {
const rawValues = this.storage.get(this.namespace);
let jsonValues: Record<string, unknown>;
try {
Expand Down Expand Up @@ -100,7 +100,7 @@ export class LoadStoreCache<V> {
this.putAll(values);
}

public async store(values: Record<string, V> = this.cache) {
public store(values: Record<string, V> = this.cache) {
this.storage.put(this.namespace, JSON.stringify(values));
}
}
Expand Down

0 comments on commit 0057076

Please sign in to comment.