MCPcopy Create free account
hub / github.com/riverqueue/river / durationAsString

Function durationAsString

riverdriver/riversqlite/river_sqlite_driver.go:1471–1473  ·  view source on GitHub ↗
(duration time.Duration)

Source from the content-addressed store, hash-verified

1469}
1470
1471func durationAsString(duration time.Duration) string {
1472 return strconv.FormatFloat(duration.Seconds(), 'f', 3, 64) + " seconds"
1473}
1474
1475func sqliteJobInsertFastManyJobsParam(jobs []*riverdriver.JobInsertFastParams, uniqueNonce string) ([]byte, error) {
1476 jobsParam := make([]map[string]any, len(jobs))

Callers 4

LeaderAttemptElectMethod · 0.85
LeaderAttemptReelectMethod · 0.85
LeaderInsertMethod · 0.85
TestDurationAsStringFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestDurationAsStringFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…