@@ -188,7 +188,7 @@ func getContentHandler(ctx *context.Context) {
188
188
}
189
189
}
190
190
191
- contentStore := & ContentStore {storage .LFS }
191
+ contentStore := & ContentStore {ObjectStorage : storage .LFS }
192
192
content , err := contentStore .Get (meta , fromByte )
193
193
if err != nil {
194
194
// Errors are logged in contentStore.Get
@@ -289,7 +289,7 @@ func PostHandler(ctx *context.Context) {
289
289
ctx .Resp .Header ().Set ("Content-Type" , metaMediaType )
290
290
291
291
sentStatus := 202
292
- contentStore := & ContentStore {storage .LFS }
292
+ contentStore := & ContentStore {ObjectStorage : storage .LFS }
293
293
exist , err := contentStore .Exists (meta )
294
294
if err != nil {
295
295
log .Error ("Unable to check if LFS OID[%s] exist on %s / %s. Error: %v" , rv .Oid , rv .User , rv .Repo , err )
@@ -350,7 +350,7 @@ func BatchHandler(ctx *context.Context) {
350
350
return
351
351
}
352
352
353
- contentStore := & ContentStore {storage .LFS }
353
+ contentStore := & ContentStore {ObjectStorage : storage .LFS }
354
354
355
355
meta , err := repository .GetLFSMetaObjectByOid (object .Oid )
356
356
if err == nil { // Object is found and exists
@@ -408,7 +408,7 @@ func PutHandler(ctx *context.Context) {
408
408
return
409
409
}
410
410
411
- contentStore := & ContentStore {storage .LFS }
411
+ contentStore := & ContentStore {ObjectStorage : storage .LFS }
412
412
bodyReader := ctx .Req .Body ().ReadCloser ()
413
413
defer bodyReader .Close ()
414
414
if err := contentStore .Put (meta , bodyReader ); err != nil {
@@ -450,7 +450,7 @@ func VerifyHandler(ctx *context.Context) {
450
450
return
451
451
}
452
452
453
- contentStore := & ContentStore {storage .LFS }
453
+ contentStore := & ContentStore {ObjectStorage : storage .LFS }
454
454
ok , err := contentStore .Verify (meta )
455
455
if err != nil {
456
456
// Error will be logged in Verify
0 commit comments