Skip to content

Commit

Permalink
Rename noopsinglechain client
Browse files Browse the repository at this point in the history
Renaming of noopsinglechain package into deliverclient and
moving package content into appropricate location. More
refactoring of client code itself is going to be done to
answer FAB-1580.

Change-Id: Id7f56c91fb1b3f9312977b0ab9c5656dbec42b0d
Signed-off-by: Artem Barger <bartem@il.ibm.com>
  • Loading branch information
C0rWin committed Jan 10, 2017
1 parent 645ea6a commit 082bf0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package noopssinglechain
package deliverclient

import (
"math"
Expand Down
10 changes: 5 additions & 5 deletions peer/node/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/hyperledger/fabric/core"
"github.com/hyperledger/fabric/core/chaincode"
"github.com/hyperledger/fabric/core/comm"
"github.com/hyperledger/fabric/core/committer/noopssinglechain"
"github.com/hyperledger/fabric/core/deliverservice"
"github.com/hyperledger/fabric/core/endorser"
"github.com/hyperledger/fabric/core/ledger/ledgermgmt"
"github.com/hyperledger/fabric/core/peer"
Expand Down Expand Up @@ -174,14 +174,14 @@ func serve(args []string) error {
panic(fmt.Sprintf("Unable to get committer for [%s]", chainID))
}

//this shoul not need the chainID. Delivery should be
//this should not need the chainID. Delivery should be
//split up into network part and chain part. This should
//only init the network part...TBD, part of Join work
deliverService := noopssinglechain.NewDeliverService(chainID)
deliver := deliverclient.NewDeliverService(chainID)

deliverService.Start(commit)
deliver.Start(commit)

defer noopssinglechain.StopDeliveryService(deliverService)
defer deliverclient.StopDeliveryService(deliver)
}

logger.Infof("Starting peer with ID=%s, network ID=%s, address=%s",
Expand Down

0 comments on commit 082bf0c

Please sign in to comment.