Skip to content

Instantly share code, notes, and snippets.

let res = stream.then(move |stream| {
let stream = stream.expect("Error attaching to full node socket");
client::post(&endpoint)
.timeout(Duration::from_secs(8))
.with_connection(Connection::from_stream(stream))
.json(func_call)
.unwrap()
.send()
.then(move |response| {
trace!("Got response {:?}", response);
<html>
<head>
<link href="https://cdn.rawgit.com/kingoflolz/99782786093f489c116e/raw/style.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="heading">
<div class="score-container">0</div>
</div>