rename image.Store.SaveWithID to Save

This commit is contained in:
Dmitry Verkhoturov
2020-04-19 16:21:09 -05:00
committed by Umputun
parent 36cee9cc66
commit 2acb00d424
14 changed files with 29 additions and 29 deletions
@@ -24,7 +24,7 @@ func (s *RPC) imgSaveWithIDHndl(id uint64, params json.RawMessage) (rr jrpc.Resp
if err != nil {
return jrpc.Response{Error: err.Error()}
}
err = s.img.SaveWithID(req[0], img)
err = s.img.Save(req[0], img)
return jrpc.EncodeResponse(id, nil, err)
}
@@ -58,7 +58,7 @@ func TestRPC_imgLoadHndl(t *testing.T) {
ri := image.RPC{Client: jrpc.Client{API: api, Client: http.Client{Timeout: 1 * time.Second}}}
// save
id := "test_img"
err := ri.SaveWithID(id, gopherPNGBytes())
err := ri.Save(id, gopherPNGBytes())
assert.NoError(t, err)
// load
@@ -107,7 +107,7 @@ func TestRPC_imgCleanupHndl(t *testing.T) {
// save
id := "test_img"
err := ri.SaveWithID(id, gopherPNGBytes())
err := ri.Save(id, gopherPNGBytes())
assert.NoError(t, err)
// load