Skip to content

Commit

Permalink
improve code;
Browse files Browse the repository at this point in the history
bump version to 1.14-snapshot
  • Loading branch information
selcarpa committed Nov 17, 2023
1 parent 3716929 commit 8531224
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ jobs:

- name: Execute with Gradle
shell: bash
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
./gradlew build
./gradlew -PdockerUserName="$DOCKER_USERNAME" -PdockerPassword="$DOCKER_PASSWORD" -Prelease="true" github
- uses: ncipollo/release-action@v1
with:
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/MainKt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ object MainKt {
if (it.startsWith("-c=")) {
ConfigurationUrl = it.replace("-c=", "")
}
if(it == "-memstat"){
if (it == "-memstat") {
startMemoryStatisticPrint()
}
}

loadLogConfig()

NettyServer.start(null)
logger.info("『时间』会带来喜悦")
NettyServer.start()
logger.info("【注意事项】 本品不能代替药物")
}


Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/netty/NettyServer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object NettyServer {
* start netty server
* @param countDownLatch to wake up the blocked calling thread
*/
fun start(countDownLatch: CountDownLatch?) {
fun start(countDownLatch: CountDownLatch? = null) {

var tcpBind = false
Optional.ofNullable(Configuration.inbounds).ifPresent {
Expand Down

0 comments on commit 8531224

Please sign in to comment.