MCPcopy
hub / github.com/syncthing/syncthing / Expensive

Function Expensive

internal/slogutil/expensive.go:15–17  ·  view source on GitHub ↗

Expensive wraps a log value that is expensive to compute and should only be called if the log line is actually emitted.

(fn func() any)

Source from the content-addressed store, hash-verified

13// Expensive wraps a log value that is expensive to compute and should only
14// be called if the log line is actually emitted.
15func Expensive(fn func() any) expensive {
16 return expensive{fn}
17}
18
19type expensive struct {
20 fn func() any

Callers 3

handleDirMethod · 0.92
handleSymlinkMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected