Add comments

This commit is contained in:
Kirill Grachev 2023-05-06 19:50:24 +03:00
parent a13c4a8e8c
commit 9a41f67e29
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
package documentBuilder package documentBuilder
internal class GraphManager(private val graph: DependencyGraph) { public class GraphManager(private val graph: DependencyGraph) {
fun buildDocument(file: FileName) { fun buildDocument(file: FileName) {
val list = graph.nodes[file] val list = graph.nodes[file]
if (list != null) { if (list != null) {

View File

@ -7,7 +7,9 @@ import space.kscience.snark.ktor.SNARKServer
import space.kscience.snark.storage.local.localStorage import space.kscience.snark.storage.local.localStorage
import kotlin.io.path.Path import kotlin.io.path.Path
// Entrypoint
fun main(): Unit = runBlocking { fun main(): Unit = runBlocking {
// Parse config, create driver
val port = 8080 val port = 8080
val directory = localStorage(Path("./rundata")) val directory = localStorage(Path("./rundata"))
val server = SNARKServer(ServerDataHolder(directory), port) val server = SNARKServer(ServerDataHolder(directory), port)