-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JST-652: Implement coding conventions #723
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't notice anything incorrect
src/golem_network/golem_network.ts
Outdated
await this.yagna.connect(); | ||
this.api = this.yagna.getApi(); | ||
|
||
this.initializedState = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we need all three api
, yagna
and initializedState
, can't we achieve the same business logic with just api
?
public async init() {
if (this.isInitialized()) {
return;
}
const yagna = new Yagna(this.config.yagna);
// this will throw an error if yagna is not running
await yagna.connect();
this.api = this.yagna.getApi();
}
public isInitialized() {
return this.api !== null
}
src/golem_network/golem_network.ts
Outdated
import { RunJobOptions } from "../job/job"; | ||
import { GolemError } from "../error/golem-error"; | ||
|
||
type GolemNetworkConfig = Partial<RunJobOptions> & { yagna?: YagnaOptions }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea with the type, can we export it in the root index.ts
?
562ab6a
to
7b47d58
Compare
BREAKING CHANGE: `ActivityPoolService.isRunning` is now a function, and not a getter. `Job.isRunning` is now a function, and not a getter.
7b47d58
to
50cb9d8
Compare
🎉 This PR is included in version 2.0.0-beta.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR implements the agreed coding conventions:
_
setX, getX
accessorscamelCase
withUPPER_CASE
andPascalCase
in other cases