mirror of
https://github.com/asmogo/nws.git
synced 2025-01-18 18:11:33 +00:00
removed pprof. added comment
This commit is contained in:
parent
a31522ca41
commit
9b7a43c4b1
@ -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 == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user