Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ctxc/api_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (b *CortexAPIBackend) SeedingLocal(filePath string, isLinkMode bool) (strin
return b.ctxc.synapse.SeedingLocal(filePath, isLinkMode)
}

func (b *CortexAPIBackend) SimpleSeeding(filePath string) (string, error) {
func (b *CortexAPIBackend) Upload(filePath string) (string, error) {
return b.ctxc.synapse.SeedingLocal(filePath, false)
}

Expand Down
2 changes: 1 addition & 1 deletion internal/ctxcapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ func (api *PrivateFsAPI) SeedingLocal(filePath string, isLinkMode bool) (string,
}

// Simple Seed Local File In TorrentFs Instance
func (api *PrivateFsAPI) SimpleSeeding(filePath string) (string, error) {
func (api *PrivateFsAPI) Upload(filePath string) (string, error) {
return api.b.SeedingLocal(filePath, false)
}

Expand Down
2 changes: 1 addition & 1 deletion internal/ctxcapi/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ type Backend interface {

// Fs API
SeedingLocal(filePath string, isLinkMode bool) (string, error)
SimpleSeeding(filePath string) (string, error)
Upload(filePath string) (string, error)
PauseLocalSeed(ih string) error
ResumeLocalSeed(ih string) error
ListAllTorrents() map[string]map[string]int
Expand Down
4 changes: 2 additions & 2 deletions internal/web3ext/web3ext.go
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,8 @@ web3._extend({
params: 2,
}),
new web3._extend.Method({
name: 'simpleSeeding',
call: 'fs_simpleSeeding',
name: 'upload',
call: 'fs_upload',
params: 1,
}),
new web3._extend.Method({
Expand Down