From 6e347bd493587223b3ad9d8bb9920dda83c509d3 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Thu, 21 Oct 2021 23:08:57 +0200 Subject: [PATCH] Replace sourced items --- cmd/eksterd/memory.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/eksterd/memory.go b/cmd/eksterd/memory.go index c7ff19f..9ca9e1f 100644 --- a/cmd/eksterd/memory.go +++ b/cmd/eksterd/memory.go @@ -609,9 +609,10 @@ func ProcessSourcedItems(fetcher fetch.FetcherFunc, fetchURL, contentType string return nil, err } - for _, item := range items { + for i, item := range items { item.Read = false item.Source = source + items[i] = item } return items, nil