c8d: Remove the panic from UpdateConfig

We don't really want the daemon to panic for this so let's log a warning
about max downloads and uploads

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
Djordje Lukic 2023-09-08 12:21:16 +02:00
parent 152036f0aa
commit 9e797a6db9
No known key found for this signature in database

View file

@ -142,7 +142,7 @@ func (i *ImageService) LayerDiskUsage(ctx context.Context) (int64, error) {
//
// called from reload.go
func (i *ImageService) UpdateConfig(maxDownloads, maxUploads int) {
panic("not implemented")
log.G(context.TODO()).Warn("max downloads and uploads is not yet implemented with the containerd store")
}
// GetLayerFolders returns the layer folders from an image RootFS.