Skip to content

Commit

Permalink
Update blobs.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hzrd149 authored Mar 19, 2024
1 parent 5f6794b commit a05ffe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/blobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ type ServerList = {

export const blobs = writable<ServerList[]>([]);

servers.subscribe((servers) => refreshBlobs(servers));

let listAuth: SignedEvent | undefined = undefined;
export async function refreshBlobs(urls: string[] = get(servers), retry = true) {
console.log("Loading blobs");
Expand Down Expand Up @@ -45,3 +43,5 @@ export async function refreshBlobs(urls: string[] = get(servers), retry = true)
await refreshBlobs(needAuth, false);
}
}

servers.subscribe((servers) => refreshBlobs(servers));

0 comments on commit a05ffe9

Please sign in to comment.