Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lintexit #41

Merged
merged 3 commits into from
Sep 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
improve error handling and messaging
asmogo committed Sep 1, 2024

Verified

This commit was signed with the committer’s verified signature.
commit bedd0c5ec632dde13075052c45d0dfc6173eb1a7
2 changes: 1 addition & 1 deletion exit/exit.go
Original file line number Diff line number Diff line change
@@ -119,7 +119,7 @@ func NewExit(ctx context.Context, exitNodeConfig *config.ExitConfig) *Exit {
}
err = exit.announceExitNode(ctx)
if err != nil {
panic(err)
slog.Error("failed to announce exit node", "error", err)
}
return exit
}
2 changes: 1 addition & 1 deletion exit/nostr.go
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ import (

const ten = 10

var errNoPublicKey = errors.New("no public key found")
var errNoPublicKey = errors.New("no public configuration")

func (e *Exit) announceExitNode(ctx context.Context) error {
if !e.config.Public {