Commit 09254bf8 authored by Jeromy's avatar Jeromy

comments from CR

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent 7efab0d2
......@@ -18,13 +18,13 @@ import (
// Server handles routing queries using a database backend
type Server struct {
local peer.ID
routingBackend datastore.ThreadSafeDatastore
routingBackend datastore.Datastore
peerstore peer.Peerstore
*proxy.Loopback // so server can be injected into client
}
// NewServer creates a new Supernode routing Server
func NewServer(ds datastore.ThreadSafeDatastore, ps peer.Peerstore, local peer.ID) (*Server, error) {
func NewServer(ds datastore.Datastore, ps peer.Peerstore, local peer.ID) (*Server, error) {
s := &Server{local, ds, ps, nil}
s.Loopback = &proxy.Loopback{
Handler: s,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment