Skip to content

Commit

Permalink
Rename binary to prober
Browse files Browse the repository at this point in the history
  • Loading branch information
p2004a committed Aug 20, 2023
1 parent a7329f7 commit 0a021f6
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ COPY go.sum ./
RUN go mod download -x

COPY . .
RUN CGO_ENABLED=0 go build ./cmd/latestreplicated
RUN CGO_ENABLED=0 go build ./cmd/replicationprober

FROM gcr.io/distroless/static-debian11
WORKDIR /
USER nonroot:nonroot
COPY --from=build /go/src/app/latestreplicated /
ENTRYPOINT ["/latestreplicated"]
COPY --from=build /go/src/app/replicationprober /
ENTRYPOINT ["/replicationprober"]
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/p2004a/spring-rapid-syncer/pkg/sfcache"
)

const UserAgent = "spring-rapid-syncer/latestreplicated 1.0"
const UserAgent = "spring-rapid-syncer/prober 1.0"

type Server struct {
http http.Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s *Server) fetchReplicatedFileFromIP(ctx context.Context, ip, expectedSS s
if err != nil {
return nil, err
}
req.Header.Set("User-Agent", "spring-rapid-syncer/latestreplicated 1.0")
req.Header.Set("User-Agent", UserAgent)
req.Header.Set("Cache-Control", "no-cache")
resp, err := client.Do(req)
if err != nil {
Expand Down
File renamed without changes.

0 comments on commit 0a021f6

Please sign in to comment.