Skip to content

Commit 082bf0c

Browse files
committed
Rename noopsinglechain client
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 <[email protected]>
1 parent 645ea6a commit 082bf0c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

core/committer/noopssinglechain/client.go core/deliverservice/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package noopssinglechain
17+
package deliverclient
1818

1919
import (
2020
"math"

peer/node/start.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"github.com/hyperledger/fabric/core"
3131
"github.com/hyperledger/fabric/core/chaincode"
3232
"github.com/hyperledger/fabric/core/comm"
33-
"github.com/hyperledger/fabric/core/committer/noopssinglechain"
33+
"github.com/hyperledger/fabric/core/deliverservice"
3434
"github.com/hyperledger/fabric/core/endorser"
3535
"github.com/hyperledger/fabric/core/ledger/ledgermgmt"
3636
"github.com/hyperledger/fabric/core/peer"
@@ -174,14 +174,14 @@ func serve(args []string) error {
174174
panic(fmt.Sprintf("Unable to get committer for [%s]", chainID))
175175
}
176176

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

182-
deliverService.Start(commit)
182+
deliver.Start(commit)
183183

184-
defer noopssinglechain.StopDeliveryService(deliverService)
184+
defer deliverclient.StopDeliveryService(deliver)
185185
}
186186

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

0 commit comments

Comments
 (0)