aboutsummaryrefslogtreecommitdiff
path: root/s3_worker.c
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-09-14 00:42:27 +0800
committerMistivia <i@mistivia.com>2025-09-14 01:10:32 +0800
commit8640bf35e76aa19710a563144e30d31db2685746 (patch)
tree915fb1f0bc55caad0f52eb59a543d1315cfe0320 /s3_worker.c
parent35c8f8e94f0346856130b2a96a7c99790796e53f (diff)
fix s3 client init bug
Diffstat (limited to 's3_worker.c')
-rw-r--r--s3_worker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/s3_worker.c b/s3_worker.c
index 15fdb09..a6ae2ab 100644
--- a/s3_worker.c
+++ b/s3_worker.c
@@ -4,7 +4,7 @@
#include <stdlib.h>
#include <string.h>
-#include "config.h"
+#include "ezlive_config.h"
#include "task_queue.h"
#include "s3_client.h"
@@ -16,6 +16,7 @@ void exec_s3_task(void *vtask) {
if (task->task_type == kUploadTask) {
snprintf(obj_name_buf, 255, "%s%s", ezlive_config->s3_path, task->remote_name);
S3Client_put(task->local_file, obj_name_buf);
+ remove(task->local_file);
} else if (task->task_type == kDeleteTask) {
snprintf(obj_name_buf, 255, "%s%s", ezlive_config->s3_path, task->remote_name);
S3Client_delete(obj_name_buf);