main: remove queue

This commit is contained in:
alex 2023-11-28 18:17:48 +00:00
parent 131b6dd58c
commit 837140e54e
1 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,4 @@
import { LiveImageShape } from '@/components/LiveImageShapeUtil'
import { Queue } from '@/utils/Queue'
import { blobToDataUri } from '@/utils/blob'
import * as fal from '@fal-ai/serverless-client'
import {
@ -27,8 +26,6 @@ type LiveImageRequest = {
type LiveImageContextType = null | ((req: LiveImageRequest) => Promise<LiveImageResult>)
const LiveImageContext = createContext<LiveImageContextType>(null)
const svgQueue = new Queue()
export function LiveImageProvider({
children,
appId,
@ -186,6 +183,8 @@ export function useLiveImage(shapeId: TLShapeId) {
}
prevSvg = imageDataUri
// downloadDataURLAsFile(imageDataUri, 'image.png')
const random = rng(shapeId)
const result = await fetchImage!({