Skip to content

Commit

Permalink
no tmp dir in blobstore either
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Nov 1, 2023
1 parent 690886b commit 6edca31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/pds/src/disk-blobstore.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import fs from 'fs/promises'
import fsSync from 'fs'
import stream from 'stream'
import os from 'os'
import path from 'path'
import { CID } from 'multiformats/cid'
import { BlobNotFoundError, BlobStore } from '@atproto/repo'
Expand All @@ -23,7 +22,7 @@ export class DiskBlobStore implements BlobStore {
quarantineLocation?: string,
) {
return (did: string) => {
const tmp = tmpLocation || path.join(os.tmpdir(), 'atproto/blobs')
const tmp = tmpLocation || path.join(location, 'tempt')
const quarantine = quarantineLocation || path.join(location, 'quarantine')
return new DiskBlobStore(did, location, tmp, quarantine)
}
Expand Down

0 comments on commit 6edca31

Please sign in to comment.