Skip to content

Commit c61ea60

Browse files
committed
refactor: max memory on server host
1 parent 0104f8a commit c61ea60

File tree

1 file changed

+3
-0
lines changed
  • controller-shared/src/main/kotlin/app/simplecloud/controller/shared/host

1 file changed

+3
-0
lines changed

controller-shared/src/main/kotlin/app/simplecloud/controller/shared/host/ServerHost.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ data class ServerHost(
1010
val id: String,
1111
val host: String,
1212
val port: Int,
13+
val maximumMemory: Long,
1314
val stub: ServerHostServiceGrpcKt.ServerHostServiceCoroutineStub? = null,
1415
) {
1516

@@ -18,6 +19,7 @@ data class ServerHost(
1819
.setHostHost(host)
1920
.setHostPort(port)
2021
.setHostId(id)
22+
.setMaximumMemory(maximumMemory)
2123
.build()
2224
}
2325

@@ -28,6 +30,7 @@ data class ServerHost(
2830
serverHostDefinition.hostId,
2931
serverHostDefinition.hostHost,
3032
serverHostDefinition.hostPort,
33+
serverHostDefinition.maximumMemory,
3134
ServerHostServiceGrpcKt.ServerHostServiceCoroutineStub(
3235
createChannel(
3336
serverHostDefinition.hostHost,

0 commit comments

Comments
 (0)