[DEV-101] Renamed server/rpcserver to server/rpc. (#55)

This commit is contained in:
stasatdaglabs 2018-08-29 15:20:42 +03:00 committed by Ori Newman
parent b2d3ec69d8
commit e149a50f22
7 changed files with 9 additions and 9 deletions

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by an ISC // Use of this source code is governed by an ISC
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package rpcserver package rpc
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog"

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by an ISC // Use of this source code is governed by an ISC
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package rpcserver package rpc
import ( import (
"sync/atomic" "sync/atomic"

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by an ISC // Use of this source code is governed by an ISC
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package rpcserver package rpc
import ( import (
"bytes" "bytes"

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by an ISC // Use of this source code is governed by an ISC
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package rpcserver package rpc
import ( import (
"errors" "errors"

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by an ISC // Use of this source code is governed by an ISC
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package rpcserver package rpc
import ( import (
"testing" "testing"

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by an ISC // Use of this source code is governed by an ISC
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package rpcserver package rpc
import ( import (
"bytes" "bytes"

View File

@ -11,13 +11,13 @@ import (
"github.com/daglabs/btcd/mining" "github.com/daglabs/btcd/mining"
"github.com/daglabs/btcd/mining/cpuminer" "github.com/daglabs/btcd/mining/cpuminer"
"github.com/daglabs/btcd/server/p2p" "github.com/daglabs/btcd/server/p2p"
"github.com/daglabs/btcd/server/rpcserver" "github.com/daglabs/btcd/server/rpc"
"github.com/daglabs/btcd/signal" "github.com/daglabs/btcd/signal"
) )
// Server is a wrapper for p2p server and rpc server // Server is a wrapper for p2p server and rpc server
type Server struct { type Server struct {
rpcServer *rpcserver.Server rpcServer *rpc.Server
p2pServer *p2p.Server p2pServer *p2p.Server
cpuminer *cpuminer.CPUMiner cpuminer *cpuminer.CPUMiner
startupTime int64 startupTime int64
@ -119,7 +119,7 @@ func NewServer(listenAddrs []string, db database.DB, dagParams *dagconfig.Params
if !cfg.DisableRPC { if !cfg.DisableRPC {
s.rpcServer, err = rpcserver.NewRPCServer( s.rpcServer, err = rpc.NewRPCServer(
s.startupTime, s.startupTime,
s.p2pServer, s.p2pServer,
db, db,