File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export type KuboInitOptions = KuboEd25519Init | KuboRSAInit
30
30
export interface KuboStartOptions {
31
31
offline ?: boolean
32
32
ipnsPubsub ?: boolean
33
+ pubsub ?: boolean
33
34
repoAutoMigrate ?: boolean
34
35
35
36
/**
Original file line number Diff line number Diff line change @@ -66,6 +66,10 @@ export function buildStartArgs (options: KuboStartOptions): string[] {
66
66
args . push ( '--offline' )
67
67
}
68
68
69
+ if ( options . pubsub === true ) {
70
+ args . push ( '---enable-pubsub-experiment' )
71
+ }
72
+
69
73
if ( options . ipnsPubsub === true ) {
70
74
args . push ( '--enable-namesys-pubsub' )
71
75
}
Original file line number Diff line number Diff line change @@ -101,6 +101,12 @@ describe('utils', function () {
101
101
} ) . join ( ' ' ) ) . to . include ( '--offline' )
102
102
} )
103
103
104
+ it ( 'ipns pubsub' , ( ) => {
105
+ expect ( buildStartArgs ( {
106
+ pubsub : true
107
+ } ) . join ( ' ' ) ) . to . include ( '--enable-pubsub-experiment' )
108
+ } )
109
+
104
110
it ( 'ipns pubsub' , ( ) => {
105
111
expect ( buildStartArgs ( {
106
112
ipnsPubsub : true
You can’t perform that action at this time.
0 commit comments