Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from conduktor/tcp-nodelay
Browse files Browse the repository at this point in the history
Tcp nodelay
  • Loading branch information
trobert authored Aug 18, 2021
2 parents bb94c89 + 8a0b04e commit 8eba0b5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: docker-compose up -d
- name: Compile (All) and Test/Coverage (Scala 2 Only)
run: sbt headerCheck +clean coverage test docs/makeSite coverageReport coverageOff +test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Shut down Postgres instances
run: docker-compose down
- name: Upload code coverage data
run: bash <(curl -s https://codecov.io/bash)
9 changes: 2 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
name: Release
on:
push:
branches: [master]
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v10
- uses: olafurpg/setup-gpg@v3
- name: Publish
run: sbt ci-release
run: sbt publish
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 4 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

Global / version := "0.0.28-cdk"

// Our Scala versions.
lazy val `scala-2.12` = "2.12.13"
Expand All @@ -22,6 +22,9 @@ lazy val commonSettings = Seq(
developers := List(
Developer("tpolecat", "Rob Norris", "[email protected]", url("http://www.tpolecat.org"))
),
githubOwner := "conduktor",
githubRepository := "skunk",
githubTokenSource := TokenSource.Environment("GITHUB_TOKEN"),

// Headers
headerMappings := headerMappings.value + (HeaderFileType.scala -> HeaderCommentStyle.cppStyleLineComment),
Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/main/scala/net/BitVectorSocket.scala
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ object BitVectorSocket {
sslOptions: Option[SSLNegotiation.Options[F]],
): Resource[F, BitVectorSocket[F]] =
for {
sock <- sg.client[F](new InetSocketAddress(host, port))
sock <- sg.client[F](new InetSocketAddress(host, port), noDelay = true)
sockʹ <- sslOptions.fold(sock.pure[Resource[F, *]])(SSLNegotiation.negotiateSSL(sock, readTimeout, writeTimeout, _))
} yield fromSocket(sockʹ, readTimeout, writeTimeout)

Expand Down
18 changes: 9 additions & 9 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.9.2")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.3")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.3")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.20")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.20")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.8.2")
addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.9.2")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.3")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.3")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.20")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.20")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.8.2")

0 comments on commit 8eba0b5

Please sign in to comment.