Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
luopengift committed May 10, 2024
1 parent 35e60d5 commit 9de5814
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import (
"net/http"
"net/http/pprof"
"net/url"
"reflect"
"runtime"
"strings"
)

Expand Down Expand Up @@ -86,8 +84,7 @@ func (node *Node) Print() {

func (node *Node) print(m int) {
paths := node.paths()
name := runtime.FuncForPC(reflect.ValueOf(node.handler).Pointer()).Name()
fmt.Printf("%spath=%s, handler=%v, next=%#v\n", strings.Repeat(" ", m), node.path, name, paths)
fmt.Printf("%spath=%s, handler=%v, next=%#v\n", strings.Repeat(" ", m), node.path, node.handler, paths)
for _, p := range paths {
node.next[p].print(m + 1)
}
Expand Down

0 comments on commit 9de5814

Please sign in to comment.