aboutsummaryrefslogtreecommitdiffstats
path: root/skate/cmd/skate-bref-id/main.go
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-03-31 02:18:13 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-03-31 02:18:13 +0200
commit9e5024fc3eed88ffc6d1ded1f7e2044fc621efe6 (patch)
tree7ac3e227dd376154c1af992b9d19936f958d347c /skate/cmd/skate-bref-id/main.go
parent5dde9bfd1f3c2e69d18b07ecc8893840479206f6 (diff)
downloadrefcat-9e5024fc3eed88ffc6d1ded1f7e2044fc621efe6.tar.gz
refcat-9e5024fc3eed88ffc6d1ded1f7e2044fc621efe6.zip
allow to pass in field delimiter
Diffstat (limited to 'skate/cmd/skate-bref-id/main.go')
-rw-r--r--skate/cmd/skate-bref-id/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/skate/cmd/skate-bref-id/main.go b/skate/cmd/skate-bref-id/main.go
index ca3d7c4..21e1e9e 100644
--- a/skate/cmd/skate-bref-id/main.go
+++ b/skate/cmd/skate-bref-id/main.go
@@ -9,9 +9,9 @@ import (
"runtime"
"time"
- jsoniter "github.com/json-iterator/go"
"git.archive.org/martin/cgraph/skate"
"git.archive.org/martin/cgraph/skate/parallel"
+ jsoniter "github.com/json-iterator/go"
)
var (
@@ -29,7 +29,7 @@ func main() {
return nil, err
}
bref.Key = fmt.Sprintf("%s_%d", bref.SourceReleaseIdent, bref.RefIndex)
- bref.UpdateTs = time.Now().Unix()
+ bref.IndexedTs = time.Now().Unix()
b, err := json.Marshal(bref)
b = append(b, newlineB...)
return b, err