Skip to content

Commit

Permalink
removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
robgruen committed Feb 4, 2025
1 parent 313cf3e commit ae4fa7e
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions ts/packages/api/src/typeAgentServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,37 +232,19 @@ export class TypeAgentServer {
const debounceCount: number =
this.fileWriteDebouncer.get(fileName)!!;
if (debounceCount == 0) {
// blob storage specific starts here
/*
const blobServiceClient = new BlobServiceClient(
this.accountURL,
new DefaultAzureCredential(),
);
const containerClient: ContainerClient =
blobServiceClient.getContainerClient(this.containerName!!);
let blobName = fileName.replace(getUserDataDir(), "");
// Create blob client from container client
const blockBlobClient: BlockBlobClient =
containerClient.getBlockBlobClient(blobName!!);
*/

try {
const localPath: string = path.join(
getUserDataDir(),
fileName,
);
// await blockBlobClient.uploadFile(localPath);

if (!this.storageProvider) {
console.log(
`Failed to upload ${fileName} to provider, no storage provider found`,
);
return;
}
await this.storageProvider.uploadFile(localPath, fileName);
// console.log(`Done uploading ${fileName} to ${blobName}`);
} catch (e) {
console.log(e);
}
Expand Down

0 comments on commit ae4fa7e

Please sign in to comment.