move syncing under services

pull/139/head
Minh Doan 6 years ago committed by Minh Doan
parent 290155b55b
commit 25ca704f89
  1. 6
      node/node.go
  2. 2
      services/syncing/downloader/client.go
  3. 0
      services/syncing/downloader/errors.go
  4. 0
      services/syncing/downloader/gen.sh
  5. 2
      services/syncing/downloader/interface.go
  6. 0
      services/syncing/downloader/proto/downloader.pb.go
  7. 0
      services/syncing/downloader/proto/downloader.proto
  8. 2
      services/syncing/downloader/server.go
  9. 4
      services/syncing/downloader/server_test.go
  10. 0
      services/syncing/errors.go
  11. 0
      services/syncing/interface.go
  12. 2
      services/syncing/syncing.go
  13. 6
      services/syncing/syncing_test.go

@ -29,9 +29,9 @@ import (
"github.com/harmony-one/harmony/p2p" "github.com/harmony-one/harmony/p2p"
"github.com/harmony-one/harmony/p2p/host" "github.com/harmony-one/harmony/p2p/host"
proto_node "github.com/harmony-one/harmony/proto/node" proto_node "github.com/harmony-one/harmony/proto/node"
"github.com/harmony-one/harmony/syncing" "github.com/harmony-one/harmony/services/syncing"
"github.com/harmony-one/harmony/syncing/downloader" "github.com/harmony-one/harmony/services/syncing/downloader"
downloader_pb "github.com/harmony-one/harmony/syncing/downloader/proto" downloader_pb "github.com/harmony-one/harmony/services/syncing/downloader/proto"
) )
// State is a state of a node. // State is a state of a node.

@ -6,7 +6,7 @@ import (
"log" "log"
"time" "time"
pb "github.com/harmony-one/harmony/syncing/downloader/proto" pb "github.com/harmony-one/harmony/services/syncing/downloader/proto"
"google.golang.org/grpc" "google.golang.org/grpc"
) )

@ -1,7 +1,7 @@
package downloader package downloader
import ( import (
pb "github.com/harmony-one/harmony/syncing/downloader/proto" pb "github.com/harmony-one/harmony/services/syncing/downloader/proto"
) )
// DownloadInterface is the interface for downloader package. // DownloadInterface is the interface for downloader package.

@ -7,7 +7,7 @@ import (
"google.golang.org/grpc" "google.golang.org/grpc"
pb "github.com/harmony-one/harmony/syncing/downloader/proto" pb "github.com/harmony-one/harmony/services/syncing/downloader/proto"
) )
// Constants for downloader server. // Constants for downloader server.

@ -6,8 +6,8 @@ import (
bc "github.com/harmony-one/harmony/blockchain" bc "github.com/harmony-one/harmony/blockchain"
"github.com/harmony-one/harmony/crypto/pki" "github.com/harmony-one/harmony/crypto/pki"
"github.com/harmony-one/harmony/syncing/downloader" "github.com/harmony-one/harmony/services/syncing/downloader"
pb "github.com/harmony-one/harmony/syncing/downloader/proto" pb "github.com/harmony-one/harmony/services/syncing/downloader/proto"
) )
const ( const (

@ -11,7 +11,7 @@ import (
"github.com/harmony-one/harmony/blockchain" "github.com/harmony-one/harmony/blockchain"
"github.com/harmony-one/harmony/log" "github.com/harmony-one/harmony/log"
"github.com/harmony-one/harmony/p2p" "github.com/harmony-one/harmony/p2p"
"github.com/harmony-one/harmony/syncing/downloader" "github.com/harmony-one/harmony/services/syncing/downloader"
) )
// Constants for syncing. // Constants for syncing.

@ -7,9 +7,9 @@ import (
bc "github.com/harmony-one/harmony/blockchain" bc "github.com/harmony-one/harmony/blockchain"
"github.com/harmony-one/harmony/crypto/pki" "github.com/harmony-one/harmony/crypto/pki"
"github.com/harmony-one/harmony/p2p" "github.com/harmony-one/harmony/p2p"
"github.com/harmony-one/harmony/syncing" "github.com/harmony-one/harmony/services/syncing"
"github.com/harmony-one/harmony/syncing/downloader" "github.com/harmony-one/harmony/services/syncing/downloader"
pb "github.com/harmony-one/harmony/syncing/downloader/proto" pb "github.com/harmony-one/harmony/services/syncing/downloader/proto"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"google.golang.org/grpc" "google.golang.org/grpc"
) )
Loading…
Cancel
Save