From 253017c4298d007d9365de8f1b52e66479e95db7 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Thu, 7 Sep 2023 15:57:30 +0200 Subject: [PATCH] Fix decoding --- Sources/App/configure.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/App/configure.swift b/Sources/App/configure.swift index 098d84a..374012c 100755 --- a/Sources/App/configure.swift +++ b/Sources/App/configure.swift @@ -130,6 +130,8 @@ private func readElements(from url: URL) throws -> [Timestamped] where T: let file = url.lastPathComponent print("File \(file): Loaded \(data.count) bytes") + + let decoder = CBORDecoder() let timestampLength = 9 let byteCountLength = 2 @@ -159,7 +161,7 @@ private func readElements(from url: URL) throws -> [Timestamped] where T: let timestampData = data[startIndexOfTimestamp..