chore: gofmt alignment and stale doc comment on cos Driver.Open

Authored By: TDvorak <info@tdvorak.dev>

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
pull/3582/head
Tomas Dvorak 2 weeks ago
parent 3a5f01a63f
commit 2984d707a8

@ -234,7 +234,7 @@ func (handler Driver) CORS() error {
return err
}
// Get 获取文件
// Open opens a file for reading
func (handler *Driver) Open(ctx context.Context, path string) (*os.File, error) {
return nil, errors.New("not implemented")
}

@ -44,10 +44,10 @@ type (
}
RemoteDownloadTaskPhase string
RemoteDownloadTaskState struct {
SrcFileUri string `json:"src_file_uri,omitempty"`
SrcUri string `json:"src_uri,omitempty"`
Dst string `json:"dst,omitempty"`
FileName string `json:"file_name,omitempty"`
SrcFileUri string `json:"src_file_uri,omitempty"`
SrcUri string `json:"src_uri,omitempty"`
Dst string `json:"dst,omitempty"`
FileName string `json:"file_name,omitempty"`
// Provider pins the task to a node offering this downloader provider
// (e.g. "aria2"/"qbittorrent"). Empty = pool picks any capable node.
Provider string `json:"provider,omitempty"`

@ -8,8 +8,8 @@ import (
"time"
"github.com/cloudreve/Cloudreve/v4/application/dependency"
"github.com/cloudreve/Cloudreve/v4/inventory/types"
"github.com/cloudreve/Cloudreve/v4/inventory"
"github.com/cloudreve/Cloudreve/v4/inventory/types"
"github.com/cloudreve/Cloudreve/v4/pkg/cluster"
"github.com/cloudreve/Cloudreve/v4/pkg/filemanager/fs"
"github.com/cloudreve/Cloudreve/v4/pkg/filemanager/fs/dbfs"

@ -239,7 +239,7 @@ func TestBlackHole(t *testing.T) {
func TestHTTPClient_TPSLimit(t *testing.T) {
a := assert.New(t)
client := NewClient(nil, )
client := NewClient(nil)
finished := make(chan struct{})
go func() {

@ -131,18 +131,18 @@ func (s *GetSettingService) GetSiteConfig(c *gin.Context) (*SiteConfig, error) {
}
}
return &SiteConfig{
MaxBatchSize: maxBatchSize,
FileViewers: fileViewers,
DefaultViewerMapping: settings.DefaultViewerMapping(c),
Icons: explorerSettings.Icons,
MapProvider: mapSettings.Provider,
GoogleMapTileType: mapSettings.GoogleTileType,
MapboxAK: mapSettings.MapboxAK,
ThumbnailWidth: w,
ThumbnailHeight: h,
CustomProps: customProps,
ShowEncryptionStatus: showEncryptionStatus,
FullTextSearch: settings.FTSEnabled(c),
MaxBatchSize: maxBatchSize,
FileViewers: fileViewers,
DefaultViewerMapping: settings.DefaultViewerMapping(c),
Icons: explorerSettings.Icons,
MapProvider: mapSettings.Provider,
GoogleMapTileType: mapSettings.GoogleTileType,
MapboxAK: mapSettings.MapboxAK,
ThumbnailWidth: w,
ThumbnailHeight: h,
CustomProps: customProps,
ShowEncryptionStatus: showEncryptionStatus,
FullTextSearch: settings.FTSEnabled(c),
RemoteDownloadProviders: remoteDownloadProviders(c, dep),
}, nil
case "emojis":

Loading…
Cancel
Save