From 93ad86e0e98ea21a15ae8f010cb9b5e185397c76 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Mon, 8 Jan 2024 11:17:55 -0800 Subject: [PATCH] fix(engine): dropped filepath.Walk() error Signed-off-by: Lars Lehtonen --- engine/cdn/storage/local/buffer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/cdn/storage/local/buffer.go b/engine/cdn/storage/local/buffer.go index 5bdf4a4275..85c686728f 100644 --- a/engine/cdn/storage/local/buffer.go +++ b/engine/cdn/storage/local/buffer.go @@ -66,6 +66,9 @@ func (b *Buffer) BufferType() storage.CDNBufferType { func (b *Buffer) ResyncWithDatabase(ctx context.Context, db gorp.SqlExecutor, t sdk.CDNItemType, dryRun bool) { root := fmt.Sprintf("%s/%s", b.config.Path, string(t)) if err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error { + if err != nil { + return err + } if info == nil { return nil }