Skip to content

Commit

Permalink
feat(output): Add filtering on module
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Sep 13, 2024
1 parent 1d00b38 commit 463a24d
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 30 deletions.
1 change: 1 addition & 0 deletions pkg/cannon/cannon.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ func (c *Cannon) createNewClientMeta(ctx context.Context) (*xatu.ClientMeta, err
Id: c.id.String(),
Implementation: xatu.Implementation,
Os: runtime.GOOS,
ModuleName: xatu.ModuleName_CANNON,
ClockDrift: uint64(c.clockDrift.Milliseconds()),
Ethereum: &xatu.ClientMeta_Ethereum{
Network: networkMeta,
Expand Down
1 change: 1 addition & 0 deletions pkg/clmimicry/mimicry.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ func (m *Mimicry) createNewClientMeta(ctx context.Context) (*xatu.ClientMeta, er
Id: m.id.String(),
Implementation: xatu.Implementation,
Os: runtime.GOOS,
ModuleName: xatu.ModuleName_CL_MIMICRY,
ClockDrift: uint64(m.clockDrift.Milliseconds()),
Ethereum: &xatu.ClientMeta_Ethereum{
Network: &xatu.ClientMeta_Ethereum_Network{
Expand Down
1 change: 1 addition & 0 deletions pkg/mimicry/mimicry.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ func (m *Mimicry) createNewClientMeta(ctx context.Context) (*xatu.ClientMeta, er
Version: xatu.Short(),
Id: m.id.String(),
Implementation: xatu.Implementation,
ModuleName: xatu.ModuleName_EL_MIMICRY,
Os: runtime.GOOS,
ClockDrift: uint64(m.clockDrift.Milliseconds()),
Labels: m.Config.Labels,
Expand Down
46 changes: 21 additions & 25 deletions pkg/proto/xatu/module.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions pkg/proto/xatu/module.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ enum ModuleName {
SENTRY = 1;
CANNON = 2;
SERVER = 3;
MIMICRY = 4;
DISCOVERY = 5;
CL_MIMICRY = 6;
EL_MIMICRY = 7;
RELAY_MONITOR = 8;
DISCOVERY = 4;
CL_MIMICRY = 5;
EL_MIMICRY = 6;
RELAY_MONITOR = 7;
}
1 change: 1 addition & 0 deletions pkg/relaymonitor/relay_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ func (r *RelayMonitor) createNewClientMeta(ctx context.Context) (*xatu.ClientMet
Version: xatu.Short(),
Id: r.id.String(),
Implementation: xatu.Implementation,
ModuleName: xatu.ModuleName_RELAY_MONITOR,
Os: runtime.GOOS,
ClockDrift: uint64(r.clockDrift.Milliseconds()),
Ethereum: &xatu.ClientMeta_Ethereum{
Expand Down
1 change: 1 addition & 0 deletions pkg/sentry/sentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ func (s *Sentry) createNewClientMeta(ctx context.Context) (*xatu.ClientMeta, err
Version: xatu.Short(),
Id: s.id.String(),
Implementation: xatu.Implementation,
ModuleName: xatu.ModuleName_SENTRY,
Os: runtime.GOOS,
ClockDrift: uint64(s.clockDrift.Milliseconds()),
Ethereum: &xatu.ClientMeta_Ethereum{
Expand Down

0 comments on commit 463a24d

Please sign in to comment.