Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const Fastify = require('fastify');
const arrowPlugin = require('fastify-arrow');
const fastify = Fastify().register(require('fastify-arrow'));
const {
tableFromArrays,
tableFromIPC, vectorFromArray,
Utf8Vector, FloatVector,
RecordBatchStreamWriter,
Expand All @@ -64,7 +65,7 @@ fastify.get(`/data`, (request, reply) => {
});

(async () => {
const res = await fastfiy.inject({
const res = await fastify.inject({
url: '/data', method: `GET`, headers: {
'accepts': `application/octet-stream`
}
Expand Down Expand Up @@ -110,7 +111,7 @@ fastify.post(`/update`, (request, reply) => {
});

(async () => {
const res = await fastfiy.inject({
const res = await fastify.inject({
url: '/update', method: `POST`, headers: {
'accepts': `text/plain; charset=utf-8`,
'content-type': `application/octet-stream`
Expand All @@ -133,7 +134,7 @@ fastify.post(`/avg_floats`, (request, reply) => {

(async () => {
const writer = RecordBatchStreamWriter.writeAll(demoData());
const averages = await fastfiy.inject({
const averages = await fastify.inject({
url: '/avg_floats', method: `POST`,
payload: writer.toNodeStream(),
headers: {
Expand Down