removed pprof. added comment

This commit is contained in:
dd dd 2024-07-25 19:31:25 +02:00
parent a31522ca41
commit 9b7a43c4b1

View File

@ -14,7 +14,6 @@ import (
"golang.org/x/net/context"
"log/slog"
"net"
_ "net/http/pprof"
)
const (
@ -50,6 +49,7 @@ type Exit struct {
}
// NewExit creates a new Exit node with the provided context and config.
// This function will currently panic if there is an error while creating the Exit node.
func NewExit(ctx context.Context, exitNodeConfig *config.ExitConfig) *Exit {
// generate new private key if it is not set
if exitNodeConfig.NostrPrivateKey == "" {