MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / new

Method new

atomic-repository/src/change_source/selected.rs:40–50  ·  view source on GitHub ↗
(configured: GitWatch)

Source from the content-addressed store, hash-verified

38
39impl SelectedChangeSource {
40 pub fn new(configured: GitWatch) -> Self {
41 Self::with_sources(
42 configured,
43 ChangeSourceEnvironment::detect(),
44 Arc::new(FsmonitorChangeSource::new(
45 Duration::from_secs(5),
46 1_000_000,
47 )),
48 Arc::new(WatchmanChangeSource::new(Duration::from_secs(5), 1_000_000)),
49 )
50 }
51
52 pub fn with_sources(
53 configured: GitWatch,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected