(
pool: PgPool,
root: git::DataRoot,
schema: Schema,
server_secret: String,
redis: Arc<redis::Redis>,
)
| 99 | |
| 100 | impl State { |
| 101 | pub fn new( |
| 102 | pool: PgPool, |
| 103 | root: git::DataRoot, |
| 104 | schema: Schema, |
| 105 | server_secret: String, |
| 106 | redis: Arc<redis::Redis>, |
| 107 | ) -> Self { |
| 108 | Self { |
| 109 | pool, |
| 110 | root, |
| 111 | redis, |
| 112 | schema, |
| 113 | server_secret, |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | pub fn store(&self, viewer: Arc<Viewer>, timespec: &Timespec) -> Store { |
| 118 | let git = Arc::new(git::Client::new( |
nothing calls this directly
no outgoing calls
no test coverage detected