pub -> pub(crate)
This commit is contained in:
@@ -2,6 +2,6 @@ mod payload;
|
||||
mod verifier;
|
||||
mod webfinger;
|
||||
|
||||
pub use payload::DebugPayload;
|
||||
pub use verifier::MyVerify;
|
||||
pub use webfinger::RelayResolver;
|
||||
pub(crate) use payload::DebugPayload;
|
||||
pub(crate) use verifier::MyVerify;
|
||||
pub(crate) use webfinger::RelayResolver;
|
||||
|
||||
@@ -14,15 +14,15 @@ use log::{error, info};
|
||||
use std::task::{Context, Poll};
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct DebugPayload(pub bool);
|
||||
pub(crate) struct DebugPayload(pub bool);
|
||||
|
||||
#[doc(hidden)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct DebugPayloadMiddleware<S>(bool, S);
|
||||
pub(crate) struct DebugPayloadMiddleware<S>(bool, S);
|
||||
|
||||
#[derive(Clone, Debug, thiserror::Error)]
|
||||
#[error("Failed to read payload")]
|
||||
pub struct DebugError;
|
||||
pub(crate) struct DebugError;
|
||||
|
||||
impl ResponseError for DebugError {
|
||||
fn status_code(&self) -> StatusCode {
|
||||
|
||||
@@ -14,7 +14,7 @@ use sha2::{Digest, Sha256};
|
||||
use std::{future::Future, pin::Pin};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct MyVerify(pub Requests, pub ActorCache, pub State);
|
||||
pub(crate) struct MyVerify(pub Requests, pub ActorCache, pub State);
|
||||
|
||||
impl MyVerify {
|
||||
async fn verify(
|
||||
|
||||
@@ -7,11 +7,11 @@ use actix_webfinger::{Resolver, Webfinger};
|
||||
use rsa_magic_public_key::AsMagicPublicKey;
|
||||
use std::{future::Future, pin::Pin};
|
||||
|
||||
pub struct RelayResolver;
|
||||
pub(crate) struct RelayResolver;
|
||||
|
||||
#[derive(Clone, Debug, thiserror::Error)]
|
||||
#[error("Error resolving webfinger data")]
|
||||
pub struct RelayError;
|
||||
pub(crate) struct RelayError;
|
||||
|
||||
type FutResult<T, E> = dyn Future<Output = Result<T, E>>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user