mirror of
https://github.com/go-gitea/gitea.git
synced 2025-11-03 15:15:22 +01:00
test
This commit is contained in:
parent
c725e6d71c
commit
19abd3f3dc
@ -24,7 +24,7 @@ type Blob struct {
|
|||||||
// DataAsync gets a ReadCloser for the contents of a blob without reading it all.
|
// DataAsync gets a ReadCloser for the contents of a blob without reading it all.
|
||||||
// Calling the Close function on the result will discard all unread output.
|
// Calling the Close function on the result will discard all unread output.
|
||||||
func (b *Blob) DataAsync() (_ io.ReadCloser, retErr error) {
|
func (b *Blob) DataAsync() (_ io.ReadCloser, retErr error) {
|
||||||
batch, cancel, err := b.repo.CatFileBatch(b.repo.Ctx, true) // not related
|
batch, cancel, err := b.repo.CatFileBatch(b.repo.Ctx, false) // not related
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ func (b *Blob) Size() int64 {
|
|||||||
return b.size
|
return b.size
|
||||||
}
|
}
|
||||||
|
|
||||||
batch, cancel, err := b.repo.CatFileBatch(b.repo.Ctx, true) // not related
|
batch, cancel, err := b.repo.CatFileBatch(b.repo.Ctx, false) // not related
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Debug("error whilst reading size for %s in %s. Error: %v", b.ID.String(), b.repo.Path, err)
|
log.Debug("error whilst reading size for %s in %s. Error: %v", b.ID.String(), b.repo.Path, err)
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@ -23,7 +23,7 @@ func (repo *Repository) IsObjectExist(name string) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
batch, cancel, err := repo.CatFileBatch(repo.Ctx, true) // not related
|
batch, cancel, err := repo.CatFileBatch(repo.Ctx, false) // not related
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Debug("Error writing to CatFileBatchCheck %v", err)
|
log.Debug("Error writing to CatFileBatchCheck %v", err)
|
||||||
return false
|
return false
|
||||||
@ -44,7 +44,7 @@ func (repo *Repository) IsReferenceExist(name string) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
batch, cancel, err := repo.CatFileBatch(repo.Ctx, true) // not related
|
batch, cancel, err := repo.CatFileBatch(repo.Ctx, false) // not related
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Debug("Error writing to CatFileBatchCheck %v", err)
|
log.Debug("Error writing to CatFileBatchCheck %v", err)
|
||||||
return false
|
return false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user