Skip to content

Commit

Permalink
findnode prototype in main
Browse files Browse the repository at this point in the history
  • Loading branch information
distributed committed Jan 22, 2010
1 parent 02b4208 commit b6fb4bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ func main() {
cm.AddRPC("ping", malus.Ping)
cm.AddRPC("store", malus.Store)

findnode := func(rpc *malus.RPC, id string) []interface{} {
closest := rt.GetClosest().Data()
return make([]interface{}, 0)
}
cm.AddRPC("findnode", findnode)

fmt.Printf("registered\n")

/*print(bts)
Expand Down

0 comments on commit b6fb4bd

Please sign in to comment.