Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Fixed issues + new release version
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonpille committed Jun 23, 2023
1 parent ba28c0e commit dc77a4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions farmerbot/manager/data.v
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ mut:
}

pub fn (mut d DataManager) on_started() {
mut node_twin_ids := d.db.nodes.values().map(it.twin_id)
d.batch_ping_nodes(node_twin_ids)
d.handle_responses(mut node_twin_ids)

}

pub fn (mut d DataManager) on_stop() {
Expand Down
4 changes: 2 additions & 2 deletions farmerbot/system/tfchain.v
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub fn (mut t TfChain) set_node_power(node_id u32, state PowerState) ! {
return error('Failed to send: ${err}')
}
if response.err != '' {
return error('${response.err}')
return error('Error while calling set_node_power: ${response.err}')
}
}

Expand All @@ -58,7 +58,7 @@ pub fn (mut t TfChain) active_rent_contract_for_node(nodeid u32) !u64 {
return error('Failed to send: ${err}')
}
if response.err != '' {
return error('${response.err}')
return error('Error while calling active_rent_contract_for_node: ${response.err}')
}
if response.data == '' {
return 0
Expand Down
2 changes: 1 addition & 1 deletion farmerbot/system/version.v
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pub const (
version_major = u8(0)
version_minor = u8(2)
version_patch = u8(0)
extension = '-rc4'
extension = '-rc5'

version = '${version_major}.${version_minor}.${version_patch}${extension}'
)

0 comments on commit dc77a4f

Please sign in to comment.