diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-06-08 14:12:14 -0700 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-06-08 14:12:14 -0700 |
| commit | 5b06f7323a40e20f0587a9481c45233fa294b5ef (patch) | |
| tree | 1616f2b1e11c33fc289df236b62a5b7316c0119a /cmd | |
| parent | bb8a5a886c993fc943277e56b4c9065c1f3a82b2 (diff) | |
| download | x-5b06f7323a40e20f0587a9481c45233fa294b5ef.tar.xz x-5b06f7323a40e20f0587a9481c45233fa294b5ef.zip | |
cmd/future-sight: fix hash calculation
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/future-sight/main.go | 2 | ||||
| -rw-r--r-- | cmd/future-sight/manifest.yaml | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cmd/future-sight/main.go b/cmd/future-sight/main.go index 4948324..3aa62de 100644 --- a/cmd/future-sight/main.go +++ b/cmd/future-sight/main.go @@ -191,6 +191,8 @@ func (s *Server) UploadVersion(w http.ResponseWriter, r *http.Request) { return } + fout.Seek(0, 0) + hash, err := hashFileSha256(fout) if err != nil { slog.Error("failed to hash file", "err", err) diff --git a/cmd/future-sight/manifest.yaml b/cmd/future-sight/manifest.yaml index 3260bd5..e866d0e 100644 --- a/cmd/future-sight/manifest.yaml +++ b/cmd/future-sight/manifest.yaml @@ -223,4 +223,4 @@ spec: service: name: future-sight port: - name: http
\ No newline at end of file + name: web
\ No newline at end of file |
