Skip to content

Commit

Permalink
extract GC into its own executable
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Nov 21, 2022
1 parent df995cc commit 4ccbba9
Show file tree
Hide file tree
Showing 18 changed files with 291 additions and 938 deletions.
142 changes: 0 additions & 142 deletions blob_manager.go

This file was deleted.

3 changes: 2 additions & 1 deletion cache.go
Expand Up @@ -14,6 +14,7 @@ import (
"time"

"github.com/folbricht/desync"
"github.com/input-output-hk/spongix/pkg/narinfo"
"github.com/jamespfennell/xz"
"github.com/pascaldekloe/metrics"
"github.com/pkg/errors"
Expand Down Expand Up @@ -172,7 +173,7 @@ func (c cacheHandler) Put(w http.ResponseWriter, r *http.Request) {
urlExt := filepath.Ext(r.URL.String())
switch urlExt {
case ".narinfo":
info := &Narinfo{}
info := &narinfo.Narinfo{}
if err := info.Unmarshal(r.Body); err != nil {
c.log.Error("unmarshaling narinfo", zap.Error(err))
answer(w, http.StatusBadRequest, mimeText, err.Error())
Expand Down

0 comments on commit 4ccbba9

Please sign in to comment.