Skip to content

Commit

Permalink
Disable V3 publish
Browse files Browse the repository at this point in the history
  • Loading branch information
anbsky committed Nov 14, 2024
1 parent 5389a0a commit f9048a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import (
"fmt"
"io/ioutil"
"log"
"math/rand"
"os"
"time"

"github.com/OdyseeTeam/odysee-api/api"
"github.com/OdyseeTeam/odysee-api/app/sdkrouter"
Expand All @@ -22,13 +20,12 @@ var rootCmd = &cobra.Command{
Use: "oapi",
Short: "backend server for Odysee frontend",
Run: func(_ *cobra.Command, _ []string) {
rand.Seed(time.Now().UnixNano()) // always seed random!
sdkRouter := sdkrouter.New(config.GetLbrynetServers())
go sdkRouter.WatchLoad()

s := server.NewServer(config.GetAddress(), sdkRouter, &api.RoutesOptions{
EnableProfiling: config.GetProfiling(),
EnableV3Publish: true,
EnableV3Publish: false,
})
err := s.Start()
if err != nil {
Expand Down

0 comments on commit f9048a8

Please sign in to comment.