MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / blockCacheTTLRequired

Function blockCacheTTLRequired

sqlchain/runtime.go:90–96  ·  view source on GitHub ↗
(c *Config)

Source from the content-addressed store, hash-verified

88}
89
90func blockCacheTTLRequired(c *Config) (ttl int32) {
91 ttl = c.BlockCacheTTL
92 if ttl < 0 {
93 ttl = 0
94 }
95 return
96}
97
98// newRunTime returns a new sql-chain runtime instance with the specified config.
99func newRunTime(ctx context.Context, c *Config) (r *runtime) {

Callers 2

TestBlockCacheTTLFunction · 0.85
newRunTimeFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestBlockCacheTTLFunction · 0.68