Remove AdvancedConfig

This commit is contained in:
Jeffrey Serio 2023-07-24 19:46:49 -05:00
parent 50115dc2de
commit 5c4b7d7277
2 changed files with 2 additions and 10 deletions

View File

@ -82,11 +82,7 @@ type TorrentStatsPageData struct {
} }
func main() { func main() {
transmissionbt, err := transmissionrpc.New(os.Getenv("TRANSMISSION_RPC_URL"), os.Getenv("TRANSMISSION_RPC_USER"), os.Getenv("TRANSMISSION_RPC_PASSWORD"), transmissionbt, err := transmissionrpc.New(os.Getenv("TRANSMISSION_RPC_URL"), os.Getenv("TRANSMISSION_RPC_USER"), os.Getenv("TRANSMISSION_RPC_PASSWORD"), nil)
&transmissionrpc.AdvancedConfig{
HTTPS: true,
Port: 443,
})
if err != nil { if err != nil {
log.Fatalln(err) log.Fatalln(err)
} }

View File

@ -84,11 +84,7 @@ func main() {
fmt.Println("20 text/gemini\r") fmt.Println("20 text/gemini\r")
fmt.Println("```") fmt.Println("```")
transmissionbt, err := transmissionrpc.New(os.Getenv("TRANSMISSION_RPC_URL"), os.Getenv("TRANSMISSION_RPC_USER"), os.Getenv("TRANSMISSION_RPC_PASSWORD"), transmissionbt, err := transmissionrpc.New(os.Getenv("TRANSMISSION_RPC_URL"), os.Getenv("TRANSMISSION_RPC_USER"), os.Getenv("TRANSMISSION_RPC_PASSWORD"), nil)
&transmissionrpc.AdvancedConfig{
HTTPS: true,
Port: 443,
})
if err != nil { if err != nil {
log.Fatalln(err) log.Fatalln(err)
} }