This commit is contained in:
aozhiwei 2022-09-21 16:21:10 +08:00
parent 92cd2b3e07
commit ed59fce738

View File

@ -29,6 +29,7 @@ class Fragment {
const isAlloced = await this.isAlloced(conn, daySeconds, nowTime, hourSeconds); const isAlloced = await this.isAlloced(conn, daySeconds, nowTime, hourSeconds);
if (!isAlloced) { if (!isAlloced) {
const allocedFragments = await this.fetchAllocedFragments(conn, daySeconds, nowTime); const allocedFragments = await this.fetchAllocedFragments(conn, daySeconds, nowTime);
await this.realloc(conn, daySeconds, nowTime, allowedVersions);
} }
} }
} catch (err) { } catch (err) {
@ -87,6 +88,9 @@ class Fragment {
return allocedFragments; return allocedFragments;
} }
async realloc(conn, daySeconds, nowTime, hourSeconds, allocedFragments) {
}
} }
function init() { function init() {