From f9eb3adf90dace03fc2911695aba7c529c90ec3c Mon Sep 17 00:00:00 2001 From: Parker Moore <237985+parkr@users.noreply.github.com> Date: Mon, 10 Jun 2024 14:23:33 -0700 Subject: [PATCH] github: make it a Maintainer In order to be a Maintainer, the GitHub Storage implementation must respond to `Maintain()`. Unlike all the other implementations, the GitHub implementation's Maintain() method was on the pointer receiver. This fix should allow the GitHub Storage implementation to be a Maintainer. --- storage/github/github.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/github/github.go b/storage/github/github.go index 3272381..0fd5d5c 100644 --- a/storage/github/github.go +++ b/storage/github/github.go @@ -295,7 +295,7 @@ func (gh *Storage) GetIndex() (map[string]int64, error) { } // Maintain deletes check files that are older than gh.CheckExpiry. -func (gh *Storage) Maintain() error { +func (gh Storage) Maintain() error { if gh.CheckExpiry == 0 { return nil }