feat: parse textnote and include metadata as tags

This commit is contained in:
Shusui MOYATANI
2023-04-12 12:18:47 +09:00
parent a532d5ebf5
commit 748e12df7b
7 changed files with 152 additions and 21 deletions

View File

@@ -120,6 +120,9 @@ setInterval(() => {
setActiveBatchSubscriptions(count);
}, 1000);
const EmptyBatchedEvents = Object.freeze({ events: Object.freeze([]), completed: true });
const emptyBatchedEvents = () => EmptyBatchedEvents;
const { exec } = useBatch<TaskArg, TaskRes>(() => ({
interval: 2000,
batchSize: 150,
@@ -190,8 +193,6 @@ const { exec } = useBatch<TaskArg, TaskRes>(() => ({
});
};
const emptyBatchedEvents = () => ({ events: [], completed: true });
const finalizeTasks = () => {
tasks.forEach((task) => {
const signal = signals.get(task.id);