Skip to content

Commit

Permalink
fix(ci): fix canary build and re-enable docs (#690)
Browse files Browse the repository at this point in the history
* fix(ci): fix `canary` build and re-enable `docs`

* Fix docs
  • Loading branch information
grtlr authored Sep 19, 2022
1 parent da624f1 commit 973349f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ jobs:

docs:
runs-on: ubuntu-latest
# There is an ICE in rustc nightly which prevents this workflow from running:
# https://github.com/rust-lang/rust/issues/101844
# Until this is resolved, we allow this job to fail.
continue-on-error: true
env:
RUSTDOCFLAGS: "-D warnings"
steps:
Expand Down
21 changes: 13 additions & 8 deletions src/bin/inx-chronicle/launcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
use async_trait::async_trait;
use bytesize::ByteSize;
use chronicle::{
db::{
collections::{BlockCollection, LedgerUpdateCollection, MilestoneCollection, OutputCollection},
MongoDb,
},
db::MongoDb,
runtime::{Actor, ActorContext, ErrorLevel, RuntimeError},
};
use clap::Parser;
Expand Down Expand Up @@ -80,10 +77,18 @@ impl Actor for Launcher {

#[cfg(feature = "stardust")]
{
db.collection::<OutputCollection>().create_indexes().await?;
db.collection::<BlockCollection>().create_indexes().await?;
db.collection::<LedgerUpdateCollection>().create_indexes().await?;
db.collection::<MilestoneCollection>().create_indexes().await?;
db.collection::<chronicle::db::collections::OutputCollection>()
.create_indexes()
.await?;
db.collection::<chronicle::db::collections::BlockCollection>()
.create_indexes()
.await?;
db.collection::<chronicle::db::collections::LedgerUpdateCollection>()
.create_indexes()
.await?;
db.collection::<chronicle::db::collections::MilestoneCollection>()
.create_indexes()
.await?;
}

#[cfg(all(feature = "inx", feature = "stardust"))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ mod rand {
use super::*;

impl TimelockUnlockCondition {
/// Generates a random [`StorageDepositReturnUnlockCondition`].
/// Generates a random [`TimelockUnlockCondition`].
pub fn rand() -> Self {
Self {
timestamp: rand_number::<u32>().into(),
Expand Down
2 changes: 1 addition & 1 deletion src/types/stardust/block/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ mod rand {
use super::*;

impl Signature {
/// Generates a random [`Signature`] with an [`Ed25519Signature`].
/// Generates a random [`Signature`] with an [`bee::Ed25519Signature`].
pub fn rand() -> Self {
Self::from(&bee::Signature::Ed25519(bee::Ed25519Signature::new(
rand_bytes_array(),
Expand Down

0 comments on commit 973349f

Please sign in to comment.