Skip to content

Commit

Permalink
updated version string
Browse files Browse the repository at this point in the history
  • Loading branch information
jdutchak committed Jul 17, 2024
1 parent 38777a9 commit 9502f14
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cmd/masa-node-cli/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const logo = `
const (
subtitle = `masa oracle client`
navigation = `[yellow]use keys or mouse to navigate`
mouse = `[green]v0.0.9-beta`
mouse = `[green]v0.5.0`
)

// Splash shows the app info
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const (
AllowedPeer = "allowedPeer"
Signature = "signature"
Debug = "debug"
Version = "v0.0.9-beta"
Version = "v0.5.0"
FilePath = "FILE_PATH"
Validator = "VALIDATOR"
CachePath = "CACHE_PATH"
Expand Down
3 changes: 2 additions & 1 deletion pkg/db/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ func ReadData(node *masa.OracleNode, key string) ([]byte, error) {
if err != nil {
logrus.WithFields(logrus.Fields{
"error": err,
}).Error("Failed to read from the database")
// we don't need to check for err since !exists gives an err also - we only need to know if the record exists or not in this context
}).Debug("Failed to read from the database")
return nil, err
}

Expand Down
9 changes: 3 additions & 6 deletions pkg/workers/workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,6 @@ func updateRecords(node *masa.OracleNode, workEvent db.WorkEvent) {
logrus.Errorf("Failed to write data for CID %s: %v", workEvent.CID, err)
return
}
//err = node.PubSubManager.Publish(config.TopicWithVersion(config.BlockTopic), workEvent.Payload)
//if err != nil {
// logrus.Errorf("Error publishing block: %v", err)
//}
}

var nodeData pubsub.NodeData
Expand Down Expand Up @@ -342,9 +338,9 @@ func SendWork(node *masa.OracleNode, m *pubsub2.Message) {
return
}
spawnedPID := spawned.Pid
// Check if spawnedPID is nil
// Check if spawnedPID is nil we dont need to show this to the user
if spawnedPID == nil {
logrus.Errorf("spawnedPID is nil for IP: %s", ipAddr)
logrus.Debugf("spawned pid is not a worker for IP: %s", ipAddr)
return
}
client := node.ActorEngine.Spawn(props)
Expand Down Expand Up @@ -510,6 +506,7 @@ func processWork(data *pubsub2.Message, work string, startTime *time.Time, node
Duration: duration.Seconds(),
Timestamp: time.Now().Unix(),
}

// @todo handle mutliple block publishes issue
// _ = node.PubSubManager.Publish(config.TopicWithVersion(config.BlockTopic), workEvent.Payload)

Expand Down

0 comments on commit 9502f14

Please sign in to comment.