Skip to content

Commit 7d7975a

Browse files
committed
raise the mongod op timeout for the Groups and Vertices insert operations, to handle very large packages like swift-godot
1 parent f8d2caa commit 7d7975a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Sources/UnidocDB/Vertices/Unidoc.DB.Groups.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ extension Unidoc.DB.Groups
114114
}
115115
}
116116
},
117-
against: self.database)
117+
against: self.database,
118+
by: .now.advanced(by: .seconds(30)))
118119

119120
return try response.insertions()
120121
}

Sources/UnidocDB/Vertices/Unidoc.DB.Vertices.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ extension Unidoc.DB.Vertices
8989

9090
$0.append(Unidoc.AnyVertex.landing(vertices.landing))
9191
},
92-
against: self.database)
92+
against: self.database,
93+
by: .now.advanced(by: .seconds(30)))
9394

9495
return try response.insertions()
9596
}

0 commit comments

Comments
 (0)