mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: move popular tanks to cron job
This commit is contained in:
1 parent
ff9ec55da6
commit
365c68aa4d
12 files changed
+318
-45
No files matched your search
@@ -2,6 +2,7 @@ import { MessageFns } from '../protos';
|
||||
|
||||
export async function fetchPB<Type>(url: string, message: MessageFns<Type>) {
|
||||
const response = await fetch(url);
|
||||
|
||||
const buffer = await response.arrayBuffer();
|
||||
const array = new Uint8Array(buffer);
|
||||
return message.decode(array);
|
||||
|
||||
Reference in new issue
Block a user