fix: some weird upload bugs

This commit is contained in:
2025-11-30 19:39:47 +00:00
parent a3110b67c3
commit ccdeaf0364
5 changed files with 17 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ package upload
import (
"context"
"errors"
"fmt"
"io"
"sync"
"time"
@@ -84,6 +85,7 @@ func (s *Service) CreateUpload(ctx context.Context, db bun.IDB, accountID uuid.U
}
func (s *Service) ReceiveUpload(ctx context.Context, db bun.IDB, accountID uuid.UUID, uploadID string, reader io.Reader) error {
fmt.Printf("reader: %v\n", reader)
n, ok := s.pendingUploads.Load(uploadID)
if !ok {
return ErrNotFound