feat(go): implement current Node backend features

This commit is contained in:
Thomas Durieux committed 2026-11-14 14:12:47 +00:00
1 parent 566171342c
commit c201847b83
84 files changed
+8921 -384

No files matched your search

+4
View File
@@ -205,6 +205,10 @@ func (s *Server) sharedSourceRead(ctx context.Context, r M, p provider.Repositor
context.AfterFunc(work, func() { bounded.Close() })
return bounded, nil
}
if err = s.reserveBillingExpansion(ctx, a.Ref.AnonymousID, entry.Path, reader.Record().Size-entry.Size); err != nil {
reader.Close()
return nil, err
}
if reader.Record().Size > anonymize.MaxInput {
reader.Close()
return nil, fail("file_too_big", 413)