Skip to content

Commit

Permalink
deploy: 511c3ef
Browse files Browse the repository at this point in the history
  • Loading branch information
jbearer committed Feb 16, 2024
1 parent 4951ac6 commit f493552
Show file tree
Hide file tree
Showing 88 changed files with 193 additions and 250 deletions.
9 changes: 4 additions & 5 deletions hotshot_query_service/availability/enum.BlockId.html

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions hotshot_query_service/availability/enum.Error.html

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions hotshot_query_service/availability/enum.LeafId.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions hotshot_query_service/availability/struct.BlockQueryData.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions hotshot_query_service/availability/struct.CustomSnafu.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions hotshot_query_service/availability/struct.FetchLeafSnafu.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions hotshot_query_service/availability/struct.LeafQueryData.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions hotshot_query_service/availability/struct.RequestSnafu.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions hotshot_query_service/data_source/sql/struct.Migration.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions hotshot_query_service/data_source/sql/type.SqlDataSource.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h3 id="composition"><a href="#composition">Composition</a></h3>

<span class="kw">async fn </span>init_server(
config: Config,
<span class="kw-2">mut </span>hotshot: SystemContextHandle&lt;AppTypes, AppNodeImpl&gt;,
hotshot: SystemContextHandle&lt;AppTypes, AppNodeImpl&gt;,
) -&gt; <span class="prelude-ty">Result</span>&lt;App&lt;Arc&lt;RwLock&lt;AppState&gt;&gt;, Error&gt;, Error&gt; {
<span class="kw">let </span><span class="kw-2">mut </span>hotshot_qs = config.connect(NoFetching).<span class="kw">await</span>.map_err(Error::internal)<span class="question-mark">?</span>;
<span class="comment">// Initialize storage for other modules, using `hotshot_qs` to access the database.
Expand All @@ -160,7 +160,7 @@ <h3 id="composition"><a href="#composition">Composition</a></h3>
<span class="comment">// Register API modules.

</span>spawn(<span class="kw">async move </span>{
<span class="kw">let </span><span class="kw-2">mut </span>events = hotshot.get_event_stream(Default::default()).<span class="kw">await</span>.<span class="number">0</span>;
<span class="kw">let </span><span class="kw-2">mut </span>events = hotshot.get_event_stream();
<span class="kw">while let </span><span class="prelude-val">Some</span>(event) = events.next().<span class="kw">await </span>{
<span class="kw">let </span><span class="kw-2">mut </span>state = state.write().<span class="kw">await</span>;
UpdateDataSource::&lt;AppTypes&gt;::update(<span class="kw-2">&amp;mut </span>state.hotshot_qs, <span class="kw-2">&amp;</span>event)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../../../type.QueryResult.html" title="type hotshot_query_service::QueryResult">QueryResult</a>&lt;<a class="struct" href="../../../node/struct.SyncStatus.html" title="struct hotshot_query_service::node::SyncStatus">SyncStatus</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;<div class="where">where
Self: 'async_trait,
'life0: 'async_trait,</div></h4></section></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-UpdateAvailabilityData%3CTypes%3E-for-FileSystemStorage%3CTypes%3E" class="impl"><a class="src rightside" href="../../../../src/hotshot_query_service/data_source/storage/fs.rs.html#326-361">source</a><a href="#impl-UpdateAvailabilityData%3CTypes%3E-for-FileSystemStorage%3CTypes%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Types: NodeType&gt; <a class="trait" href="../../../availability/trait.UpdateAvailabilityData.html" title="trait hotshot_query_service::availability::UpdateAvailabilityData">UpdateAvailabilityData</a>&lt;Types&gt; for <a class="struct" href="struct.FileSystemStorage.html" title="struct hotshot_query_service::data_source::storage::fs::FileSystemStorage">FileSystemStorage</a>&lt;Types&gt;<div class="where">where
<a class="type" href="../../../type.Payload.html" title="type hotshot_query_service::Payload">Payload</a>&lt;Types&gt;: <a class="trait" href="../../../availability/trait.QueryablePayload.html" title="trait hotshot_query_service::availability::QueryablePayload">QueryablePayload</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="../../../availability/trait.UpdateAvailabilityData.html#associatedtype.Error" class="associatedtype">Error</a> = PersistenceError</h4></section><section id="method.insert_leaf" class="method trait-impl"><a class="src rightside" href="../../../../src/hotshot_query_service/data_source/storage/fs.rs.html#332-347">source</a><a href="#method.insert_leaf" class="anchor">§</a><h4 class="code-header">fn <a href="../../../availability/trait.UpdateAvailabilityData.html#tymethod.insert_leaf" class="fn">insert_leaf</a>&lt;'life0, 'async_trait&gt;(
<a class="type" href="../../../type.Payload.html" title="type hotshot_query_service::Payload">Payload</a>&lt;Types&gt;: <a class="trait" href="../../../availability/trait.QueryablePayload.html" title="trait hotshot_query_service::availability::QueryablePayload">QueryablePayload</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error" class="associatedtype trait-impl"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="../../../availability/trait.UpdateAvailabilityData.html#associatedtype.Error" class="associatedtype">Error</a> = PersistenceError</h4></section><section id="method.insert_leaf" class="method trait-impl"><a class="src rightside" href="../../../../src/hotshot_query_service/data_source/storage/fs.rs.html#332-347">source</a><a href="#method.insert_leaf" class="anchor">§</a><h4 class="code-header">fn <a href="../../../availability/trait.UpdateAvailabilityData.html#tymethod.insert_leaf" class="fn">insert_leaf</a>&lt;'life0, 'async_trait&gt;(
&amp;'life0 mut self,
leaf: <a class="struct" href="../../../availability/struct.LeafQueryData.html" title="struct hotshot_query_service::availability::LeafQueryData">LeafQueryData</a>&lt;Types&gt;
) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../../../availability/trait.UpdateAvailabilityData.html#associatedtype.Error" title="type hotshot_query_service::availability::UpdateAvailabilityData::Error">Error</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;<div class="where">where
Expand All @@ -110,13 +110,13 @@
) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../../../availability/trait.UpdateAvailabilityData.html#associatedtype.Error" title="type hotshot_query_service::availability::UpdateAvailabilityData::Error">Error</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;<div class="where">where
Self: 'async_trait,
'life0: 'async_trait,</div></h4></section></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-UpdateNodeData%3CTypes%3E-for-FileSystemStorage%3CTypes%3E" class="impl"><a class="src rightside" href="../../../../src/hotshot_query_service/data_source/storage/fs.rs.html#428-441">source</a><a href="#impl-UpdateNodeData%3CTypes%3E-for-FileSystemStorage%3CTypes%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Types: NodeType&gt; <a class="trait" href="../../../node/trait.UpdateNodeData.html" title="trait hotshot_query_service::node::UpdateNodeData">UpdateNodeData</a>&lt;Types&gt; for <a class="struct" href="struct.FileSystemStorage.html" title="struct hotshot_query_service::data_source::storage::fs::FileSystemStorage">FileSystemStorage</a>&lt;Types&gt;<div class="where">where
<a class="type" href="../../../type.Payload.html" title="type hotshot_query_service::Payload">Payload</a>&lt;Types&gt;: <a class="trait" href="../../../availability/trait.QueryablePayload.html" title="trait hotshot_query_service::availability::QueryablePayload">QueryablePayload</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a href="../../../node/trait.UpdateNodeData.html#associatedtype.Error" class="associatedtype">Error</a> = PersistenceError</h4></section><section id="method.insert_leaf-1" class="method trait-impl"><a class="src rightside" href="../../../../src/hotshot_query_service/data_source/storage/fs.rs.html#434-440">source</a><a href="#method.insert_leaf-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../../node/trait.UpdateNodeData.html#tymethod.insert_leaf" class="fn">insert_leaf</a>&lt;'life0, 'async_trait&gt;(
<a class="type" href="../../../type.Payload.html" title="type hotshot_query_service::Payload">Payload</a>&lt;Types&gt;: <a class="trait" href="../../../availability/trait.QueryablePayload.html" title="trait hotshot_query_service::availability::QueryablePayload">QueryablePayload</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="../../../node/trait.UpdateNodeData.html#associatedtype.Error" class="associatedtype">Error</a> = PersistenceError</h4></section><section id="method.insert_leaf-1" class="method trait-impl"><a class="src rightside" href="../../../../src/hotshot_query_service/data_source/storage/fs.rs.html#434-440">source</a><a href="#method.insert_leaf-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../../node/trait.UpdateNodeData.html#tymethod.insert_leaf" class="fn">insert_leaf</a>&lt;'life0, 'async_trait&gt;(
&amp;'life0 mut self,
leaf: <a class="struct" href="../../../availability/struct.LeafQueryData.html" title="struct hotshot_query_service::availability::LeafQueryData">LeafQueryData</a>&lt;Types&gt;
) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../../../node/trait.UpdateNodeData.html#associatedtype.Error" title="type hotshot_query_service::node::UpdateNodeData::Error">Error</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;<div class="where">where
Self: 'async_trait,
'life0: 'async_trait,</div></h4></section></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-VersionedDataSource-for-FileSystemStorage%3CTypes%3E" class="impl"><a class="src rightside" href="../../../../src/hotshot_query_service/data_source/storage/fs.rs.html#181-200">source</a><a href="#impl-VersionedDataSource-for-FileSystemStorage%3CTypes%3E" class="anchor">§</a><h3 class="code-header">impl&lt;Types: NodeType&gt; <a class="trait" href="../../trait.VersionedDataSource.html" title="trait hotshot_query_service::data_source::VersionedDataSource">VersionedDataSource</a> for <a class="struct" href="struct.FileSystemStorage.html" title="struct hotshot_query_service::data_source::storage::fs::FileSystemStorage">FileSystemStorage</a>&lt;Types&gt;<div class="where">where
<a class="type" href="../../../type.Payload.html" title="type hotshot_query_service::Payload">Payload</a>&lt;Types&gt;: <a class="trait" href="../../../availability/trait.QueryablePayload.html" title="trait hotshot_query_service::availability::QueryablePayload">QueryablePayload</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error" class="associatedtype trait-impl"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="../../trait.VersionedDataSource.html#associatedtype.Error" class="associatedtype">Error</a> = PersistenceError</h4></section><details class="toggle method-toggle" open><summary><section id="method.commit" class="method trait-impl"><a class="src rightside" href="../../../../src/hotshot_query_service/data_source/storage/fs.rs.html#187-194">source</a><a href="#method.commit" class="anchor">§</a><h4 class="code-header">fn <a href="../../trait.VersionedDataSource.html#tymethod.commit" class="fn">commit</a>&lt;'life0, 'async_trait&gt;(
<a class="type" href="../../../type.Payload.html" title="type hotshot_query_service::Payload">Payload</a>&lt;Types&gt;: <a class="trait" href="../../../availability/trait.QueryablePayload.html" title="trait hotshot_query_service::availability::QueryablePayload">QueryablePayload</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a href="../../trait.VersionedDataSource.html#associatedtype.Error" class="associatedtype">Error</a> = PersistenceError</h4></section><details class="toggle method-toggle" open><summary><section id="method.commit" class="method trait-impl"><a class="src rightside" href="../../../../src/hotshot_query_service/data_source/storage/fs.rs.html#187-194">source</a><a href="#method.commit" class="anchor">§</a><h4 class="code-header">fn <a href="../../trait.VersionedDataSource.html#tymethod.commit" class="fn">commit</a>&lt;'life0, 'async_trait&gt;(
&amp;'life0 mut self
) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>, PersistenceError&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;<div class="where">where
Self: 'async_trait,
Expand Down
Loading

0 comments on commit f493552

Please sign in to comment.