refactor(server): Clean up cache implementation
A couple of minor fixes and improvements to the cache implementation.
This commit is contained in:
parent
0698d7f2aa
commit
1308a6e1fd
3 changed files with 26 additions and 27 deletions
|
|
@ -355,7 +355,7 @@ func uploadHashLayer(ctx context.Context, s *State, key string, data io.Reader)
|
|||
return nil, err
|
||||
}
|
||||
|
||||
cacheBuild(ctx, &s.Cache, s.Bucket, key, build)
|
||||
cacheBuild(ctx, s, key, build)
|
||||
|
||||
log.Printf("Uploaded layer sha256:%s (%v bytes written)", build.SHA256, size)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue