Add pprof endpoint when running in dev mode (#708)

This commit is contained in:
David Zhao
2022-05-23 00:34:16 -07:00
committed by GitHub
parent 96b095504b
commit a933f1513f
5 changed files with 15 additions and 29 deletions
-2
View File
@@ -140,7 +140,6 @@ func createSingleNodeServer(configUpdater func(*config.Config)) *service.Livekit
if err != nil {
panic(fmt.Sprintf("could not create config: %v", err))
}
conf.Development = true
conf.Keys = map[string]string{testApiKey: testApiSecret}
if configUpdater != nil {
configUpdater(conf)
@@ -171,7 +170,6 @@ func createMultiNodeServer(nodeID string, port uint32) *service.LivekitServer {
conf.RTC.UDPPort = port + 1
conf.RTC.TCPPort = port + 2
conf.Redis.Address = "localhost:6379"
conf.Development = true
conf.Keys = map[string]string{testApiKey: testApiSecret}
currentNode, err := routing.NewLocalNode(conf)
-1
View File
@@ -111,7 +111,6 @@ func setupServerWithWebhook() (server *service.LivekitServer, testServer *webhoo
}
conf.WebHook.URLs = []string{"http://localhost:7890"}
conf.WebHook.APIKey = testApiKey
conf.Development = true
conf.Keys = map[string]string{testApiKey: testApiSecret}
testServer = newTestServer(":7890")