store: make state (de)serialization internal
This hides the state hanlding in the store package. As before, it can be disabled by passing `nil` instead of the path to the state file. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
ad637b46f8
commit
68ade23fcc
4 changed files with 65 additions and 65 deletions
|
|
@ -88,7 +88,7 @@ func TestBasic(t *testing.T) {
|
|||
//{"PATCH", "/job-queue/v1/jobs/ffffffff-ffff-ffff-ffff-ffffffffffff", `{"status":"FINISHED"}`, http.StatusNotAllowed, ``},
|
||||
}
|
||||
|
||||
store := store.New(nil, nil)
|
||||
store := store.New(nil)
|
||||
api := jobqueue.New(nil, store)
|
||||
for _, c := range cases {
|
||||
id, _ := uuid.Parse("ffffffff-ffff-ffff-ffff-ffffffffffff")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue