BrandonNoad

Results 19 comments of BrandonNoad

If you decide to stick with using `this`, you may want to have a convention where you assign `this` to a variable at the start of the function/generator: `const context...

> I don’t really imagine it will be a bug people encounter very often. Once people are familiar with how Crank works, then I agree that is true. But you...

You Don't Know JS has a good chapter on generators: https://github.com/getify/You-Dont-Know-JS/blob/1st-ed/async%20%26%20performance/ch4.md

Hi @sidorares I tried using a function for the `stream` property, but it seems that the function's first parameter is an object (with a `config` property) and not a callback....

Thanks. I will try your suggestion. Ideally the stream factory would be async with a callback so we could just do the following: ``` function getStream(cb) { ssh.forwardOut( '127.0.0.1', 12345,...

I tried this: ``` const connectionOptions = { host: config.db.host, user: config.db.user, password: config.db.password, database: config.db.database, connectionLimit: 10, dateStrings: true, decimalNumbers: true, timezone: 'Z', supportBigNumbers: true, stream: function (opts) {...

When I try to connect them manually using the code you posted, I get the following output: ``` got data from ssh side: ... Error: connect ETIMEDOUT ``` I don't...

I ended up using a single connection because my use case was fairly trivial. That said, my implementation is similar to yours. **db.js** ``` 'use strict'; const Mysql = require('mysql2/promise');...

I started experiencing these errors when I updated a route component to use arrow function syntax (e.g. `export default () => { ... }`) instead of function keyword syntax (e.g....

👍 I noticed this bug as well while completing the lesson.