5f8142cdcc
* adds comment * runs deps * adds print statements for debugging add node bkad * more print statements * removes bkad from routing and integrates on disk routing table tests failing :( wip * removes testbootstrap * kademlia_test not working * adds kad tests back in * Adds skips for tests broken due to wip kademlia
27 lines
605 B
Go
27 lines
605 B
Go
// Copyright (C) 2018 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package node
|
|
|
|
import (
|
|
"context"
|
|
|
|
"storj.io/storj/pkg/dht"
|
|
|
|
proto "storj.io/storj/protos/overlay"
|
|
)
|
|
|
|
// Server implements the grpc Node Server
|
|
type Server struct {
|
|
rt dht.RoutingTable
|
|
}
|
|
|
|
// Query is a node to node communication query
|
|
func (s *Server) Query(ctx context.Context, req proto.QueryRequest) (proto.QueryResponse, error) {
|
|
// TODO(coyle): this will need to be added to the overlay service
|
|
//look for node in routing table?
|
|
//If not in there, add node to routing table?
|
|
|
|
return proto.QueryResponse{}, nil
|
|
}
|