Skip to content

Commit

Permalink
chore(trdl): add Close method to LocalStore interface
Browse files Browse the repository at this point in the history
Close method closes local storage, frees up occupied resources.

Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
  • Loading branch information
alexey-igrychev authored and distorhead committed Sep 13, 2022
1 parent 0ddb3f6 commit d3456c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ type LocalStore interface {

// DeleteMeta deletes a given metadata.
DeleteMeta(name string) error

// Close closes local storage, frees up occupied resources.
Close() error
}

// RemoteStore downloads top-level metadata and target files from a remote
Expand Down

0 comments on commit d3456c3

Please sign in to comment.