Skip to content

Commit d831b66

Browse files
tmp: ACI-2755 1 MiB limit
1 parent 3f23809 commit d831b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/build_cache/kv/methods.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (c *Client) FindMissing(ctx context.Context, digests []*FileDigest) ([]*Fil
136136
BlobDigests: blobDigests,
137137
}
138138
c.logger.Debugf("Size of FindMissingBlobs request for %d blobs is %s", len(digests), humanize.Bytes(uint64(len(req.String()))))
139-
gRPCLimitBytes := 4 * 1024 * 1024 // gRPC limit is 4 MiB
139+
gRPCLimitBytes := 1 * 1024 * 1024 // gRPC limit is 4 MiB
140140
if len(req.String()) > gRPCLimitBytes {
141141
// Chunk up request blobs to fit into gRPC limits
142142
// Calculate the unit size of a blob (in practice can differ to the theoretical sha256(32 bytes) + size(8 bytes) = 40 bytes)

0 commit comments

Comments
 (0)