feat: 0.1.3
All checks were successful
/ build ushare (push) Successful in 39s
/ clean (push) Successful in 0s

1. 完善 dockerfile 和 entrypoint
This commit is contained in:
loveuer
2025-05-12 15:53:32 +08:00
parent b1b3ac5b6b
commit 9146c87cad
4 changed files with 46 additions and 3 deletions

View File

@ -104,6 +104,10 @@ func (m *meta) Start(ctx context.Context) {
ticker := time.NewTicker(time.Minute)
m.ctx = ctx
if err := os.MkdirAll(opt.Cfg.DataPath, 0644); err != nil {
log.Fatal("controller.MetaManager.Start: mkdir datapath failed, path = %s, err = %s", opt.Cfg.DataPath, err.Error())
}
// 清理 2 分钟内没有继续上传的 part
go func() {
for {