From bdd1f01605f48dd002836221b0eac03874038f5d Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 21 May 2022 11:40:13 -0600 Subject: Fix srv binaries --- srv/src/cmd/import-posts/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'srv/src/cmd/import-posts') diff --git a/srv/src/cmd/import-posts/main.go b/srv/src/cmd/import-posts/main.go index b2dc889..4523392 100644 --- a/srv/src/cmd/import-posts/main.go +++ b/srv/src/cmd/import-posts/main.go @@ -76,7 +76,7 @@ func importPost(postStore post.Store, path string) (post.StoredPost, error) { Body: string(body), } - if err := postStore.Set(p, publishedAt); err != nil { + if _, err := postStore.Set(p, publishedAt); err != nil { return post.StoredPost{}, fmt.Errorf("storing post id %q: %w", p.ID, err) } @@ -89,7 +89,7 @@ func importPost(postStore post.Store, path string) (post.StoredPost, error) { // as a hack, we store the post again with the updated date as now. This // will update the LastUpdatedAt field in the Store. - if err := postStore.Set(p, lastUpdatedAt); err != nil { + if _, err := postStore.Set(p, lastUpdatedAt); err != nil { return post.StoredPost{}, fmt.Errorf("updating post id %q: %w", p.ID, err) } } -- cgit v1.2.3