Skip to content

Commit

Permalink
feat: add semantic version in node registration (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu authored and kallydev committed Oct 12, 2024
1 parent 6a0b906 commit 3e3d45b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/node/broadcaster/broadcaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

"github.com/ethereum/go-ethereum/common"
"github.com/rss3-network/node/config"
"github.com/rss3-network/node/internal/constant"
"go.uber.org/zap"
)

Expand All @@ -23,6 +24,7 @@ func (b *Broadcaster) Register(ctx context.Context) error {
Stream: b.config.Stream,
Config: b.config.Component,
Type: "production",
Version: constant.Version,
}

var response any
Expand Down Expand Up @@ -112,6 +114,7 @@ type RegisterNodeRequest struct {
Stream *config.Stream `json:"stream,omitempty"`
Config *config.Component `json:"config,omitempty"`
Type string `json:"type" validate:"required"`
Version string `json:"version" validate:"required"`
}

type NodeHeartbeatRequest struct {
Expand Down

0 comments on commit 3e3d45b

Please sign in to comment.