MCPcopy Create free account
hub / github.com/akyoto/q / queueFile

Method queueFile

src/scanner/queueFile.go:4–12  ·  view source on GitHub ↗

queueFile queues a single file to be scanned.

(file string, pkg string)

Source from the content-addressed store, hash-verified

2
3// queueFile queues a single file to be scanned.
4func (s *scanner) queueFile(file string, pkg string) {
5 s.group.Go(func() {
6 err := s.scanFile(file, pkg)
7
8 if err != nil {
9 s.items <- err
10 }
11 })
12}

Callers 2

queueMethod · 0.95
queueDirectoryMethod · 0.95

Calls 1

scanFileMethod · 0.95

Tested by

no test coverage detected