Skip to content

Commit 4523363

Browse files
committed
minor fixes
1 parent 4038f6f commit 4523363

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/corehttp/gateway.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func GatewayOption(writable bool, paths ...string) ServeOption {
101101
}
102102

103103
func VersionOption() ServeOption {
104-
return func(n *core.IpfsNode, _ net.Listener, mux *http.ServeMux) (*http.ServeMux, error) {
104+
return func(_ *core.IpfsNode, _ net.Listener, mux *http.ServeMux) (*http.ServeMux, error) {
105105
mux.HandleFunc("/version", func(w http.ResponseWriter, r *http.Request) {
106106
fmt.Fprintf(w, "Commit: %s\n", version.CurrentCommit)
107107
fmt.Fprintf(w, "Client Version: %s\n", version.GetUserAgentVersion())

version.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func GetUserAgentVersion() string {
2323
}
2424

2525
var userAgentSuffix string
26+
2627
func SetUserAgentSuffix(suffix string) {
2728
userAgentSuffix = suffix
2829
}

0 commit comments

Comments
 (0)