Skip to content

Commit 2e8926c

Browse files
fix(fabricx): sdk start checks if platform is enabled
The `start` method of the fabric-x SDK was missing a check if the platform is enabled. Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
1 parent c643f48 commit 2e8926c

File tree

1 file changed

+4
-0
lines changed
  • platform/fabricx/sdk/dig

1 file changed

+4
-0
lines changed

platform/fabricx/sdk/dig/sdk.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ func (p *SDK) Install() error {
6767
}
6868

6969
func (p *SDK) Start(ctx context.Context) error {
70+
if !p.FabricEnabled() {
71+
return p.SDK.Start(ctx)
72+
}
73+
7074
// Wire the finality Listener Manager Provider with the application's root context.
7175
// This context is cancelled when the FSC application shuts down.
7276
// By initializing the provider with this context, we ensure that during shutdown,

0 commit comments

Comments
 (0)