Skip to content

Commit

Permalink
feat: add api to new S3PieceStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZexiao committed Jun 23, 2022
1 parent c021ee7 commit 162b94a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions piecestorage/filestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,8 @@ func NewFsPieceStorage(fsCfg *config.FsPieceStorage) (IPieceStorage, error) {
}
return fs, nil
}

func NewS3PieceStorage(s3Cfg *config.S3PieceStorage) (IPieceStorage, error) {
s3 := &s3PieceStorage{s3Cfg: s3Cfg}
return s3, nil
}

0 comments on commit 162b94a

Please sign in to comment.