Skip to content

Commit 6eccc1b

Browse files
committed
rename FPC_MODE env
1 parent 82c9959 commit 6eccc1b

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

ccapi/fpc-docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
- FABRIC_GATEWAY_ENDPOINT=peer0.org1.example.com:7051
2424
- FABRIC_GATEWAY_NAME=peer0.org1.example.com
2525
- GOLANG_PROTOBUF_REGISTRATION_CONFLICT=warn
26-
- FPC_MODE=true
26+
- FPC_ENABLED=true
2727
- SGX_MODE=SIM
2828
- CORE_PEER_ADDRESS=peer0.org1.example.com:7051
2929
- CORE_PEER_ID=peer0.org1.example.com

ccapi/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func main() {
2929
}))
3030
go server.Serve(r, ctx)
3131
// Events are not integrated with FPC
32-
if os.Getenv("FPC_MODE") != "true" {
32+
if os.Getenv("FPC_ENABLED") != "true" {
3333

3434
// Register to chaincode events
3535
go chaincode.WaitForEvent(os.Getenv("CHANNEL"), os.Getenv("CCNAME"), "eventName", func(ccEvent *fab.CCEvent) {

ccapi/routes/chaincode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
func addCCRoutes(rg *gin.RouterGroup) {
12-
if os.Getenv("FPC_MODE") == "true" {
12+
if os.Getenv("FPC_ENABLED") == "true" {
1313
//Use FPC Handlers
1414
rg.POST("/:channelName/:chaincodeName/invoke/:txname", handlers.InvokeFpc)
1515
rg.PUT("/:channelName/:chaincodeName/invoke/:txname", handlers.InvokeFpc)

ccapi/server/server.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ func Serve(r *gin.Engine, ctx context.Context) {
2626
// Defer close sdk to clear cache and free memory
2727
defer common.CloseSDK()
2828

29-
if os.Getenv("FPC_MODE") == "true" {
30-
// Initialize the default configuration
29+
if os.Getenv("FPC_ENABLED") == "true" {
3130
common.InitFpcConfig()
3231
}
3332

0 commit comments

Comments
 (0)