Storage: remove pointer on write path (#47580)

* remove pointer to contents in UpsertFileCommand

* add command to UpsertFileCommand

* fix client after API refactor
This commit is contained in:
Artur Wierzbicki
2022-04-12 16:58:09 +02:00
committed by GitHub
parent 7f5e8bb00f
commit 712b239d5a
5 changed files with 53 additions and 50 deletions

View File

@@ -82,7 +82,7 @@ func (s *rootStorageDisk) Write(ctx context.Context, cmd *WriteValueRequest) (*W
}
err := s.store.Upsert(ctx, &filestorage.UpsertFileCommand{
Path: path,
Contents: &byteAray,
Contents: byteAray,
})
if err != nil {
return nil, err