Skip to content

Commit 626995f

Browse files

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

core/src/main/kotlin/xyz/block/artifactswap/core/config/ArtifactSwapConfig.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ data class ArtifactSwapConfig(
185185
val primaryArtifactsMavenGroupArtifactoryPath = primaryArtifactsMavenGroup.replace('.', '/')
186186
}
187187

188-
// Eventstream Gzip Header
189-
const val EVENTSTREAM_GZIP_HEADER = "X-Square-Gzip: true"
190-
const val EVENTSTREAM_LOG_EVENTS_PATH = "/demo/path"
191-
192188
/**
193189
* Global singleton holder for the artifact swap configuration.
194190
*

core/src/main/kotlin/xyz/block/artifactswap/core/eventstream/EventstreamService.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ import retrofit2.Call
44
import retrofit2.http.Body
55
import retrofit2.http.Headers
66
import retrofit2.http.POST
7-
import xyz.block.artifactswap.core.config.EVENTSTREAM_GZIP_HEADER
8-
import xyz.block.artifactswap.core.config.EVENTSTREAM_LOG_EVENTS_PATH
97

108
public interface EventstreamService {
11-
@Headers(EVENTSTREAM_GZIP_HEADER)
12-
@POST(EVENTSTREAM_LOG_EVENTS_PATH)
9+
@Headers("X-Square-Gzip: true")
10+
@POST("/2.0/log/eventstream")
1311
public fun logEvents(@Body request: LogEventStreamV2Request): Call<LogEventStreamV2Response>
1412
}

0 commit comments

Comments
 (0)