Skip to content

Commit

Permalink
fixup! implement MerkleTree caching store that splits disk and memory
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Feb 17, 2020
1 parent 355c027 commit 7f71cef
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/lambda.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ mod commp;
use std::error::Error;
use std::str::FromStr;

#[macro_use]
extern crate lambda_runtime as lambda;
#[macro_use]
extern crate serde_derive;
use lambda::error::HandlerError;
use lambda_runtime::error::HandlerError;
use lambda_runtime::{lambda, Context};
use serde_derive::{Deserialize, Serialize};
use log::info;

use rusoto_core::credential::{AwsCredentials, StaticProvider};
Expand Down Expand Up @@ -42,10 +40,7 @@ fn main() -> Result<(), Box<dyn Error>> {
Ok(())
}

fn commp_handler(
request: CommPRequest,
_c: lambda::Context,
) -> Result<CommPResponse, HandlerError> {
fn commp_handler(request: CommPRequest, _c: Context) -> Result<CommPResponse, HandlerError> {
info!(
"Received request: {}/{}/{}",
request.region, request.bucket, request.key
Expand Down

0 comments on commit 7f71cef

Please sign in to comment.