File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Sources/SwiftinitServer/Endpoints/Procedural Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
- // run with: /bin/mongosh --file / unidoc-rs-init.js
2
- db = connect ( 'mongodb://unidoc-mongod :27017/admin' ) ;
1
+ // run with: /bin/mongosh --file unidoc-rs-init.js
2
+ db = connect ( 'mongodb://localhost :27017/admin' ) ;
3
3
db . runCommand ( { 'replSetInitiate' : {
4
4
"_id" : "unidoc-rs" ,
5
5
"version" : 1 ,
6
6
"members" : [
7
7
{
8
8
"_id" : 0 ,
9
- "host" : "unidoc-mongod :27017" ,
9
+ "host" : "localhost :27017" ,
10
10
"tags" : { } ,
11
11
"priority" : 1
12
12
}
Original file line number Diff line number Diff line change @@ -11,6 +11,15 @@ extension Swiftinit
11
11
let package : Symbol . Package
12
12
let realm : String ?
13
13
let force : Bool
14
+
15
+ init ( package : Symbol . Package ,
16
+ realm: String ? ,
17
+ force: Bool )
18
+ {
19
+ self . package = package
20
+ self . realm = realm. map { $0. isEmpty ? nil : $0 } ?? nil
21
+ self . force = force
22
+ }
14
23
}
15
24
}
16
25
extension Swiftinit . PackageAlignEndpoint : NonblockingEndpoint
You can’t perform that action at this time.
0 commit comments