Skip to content

Commit

Permalink
Fixing builder hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
can1357 committed Mar 12, 2024
1 parent 45837b9 commit 724338f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions glob/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
"slices"
"strings"
"sync"

"get.pme.sh/pmesh/util"
)

const hashSize = sha1.Size
Expand Down Expand Up @@ -77,8 +79,9 @@ func (l *HashList) Dir(prefix string) Checksum {
}
func (l *HashList) All() Checksum {
h := hasher()
for _, hash := range l.HashMap {
h.Write(hash.Slice())
for _, file := range l.StableList {
h.Write(util.UnsafeBuffer(file))
h.Write(l.HashMap[file].Slice())
}
return Checksum(h.Sum(nil))
}
Expand Down
2 changes: 1 addition & 1 deletion session/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (t *Runner) ServeJetstream(ctx context.Context, gw *enats.Gateway, msg jets
}
msg.Term()
} else {
logger.Trace().Msg("Task completed")
logger.Debug().Msg("Task completed")
if len(data) != 0 {
_, err := gw.ResultKV.Put(
context.Background(),
Expand Down

0 comments on commit 724338f

Please sign in to comment.