Skip to content

Commit

Permalink
add init stdout for proto msg type
Browse files Browse the repository at this point in the history
  • Loading branch information
AdoAdoAdo committed Mar 12, 2024
1 parent 48862d3 commit 8559c29
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions process/firehoseDataProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ var log = logger.GetOrCreate("firehose")
const (
firehosePrefix = "FIRE"
blockPrefix = "BLOCK"
initPrefix = "INIT"

protocolReaderVersion = "1.0"
protoMessageType = "type.googleapis.com/bstream.pb.sf.bstream.v1.OutportBlock"
)

type dataProcessor struct {
Expand Down Expand Up @@ -53,6 +57,8 @@ func NewFirehoseDataProcessor(
outport.TopicSaveBlock: dp.saveBlock,
}

_, _ = fmt.Fprintf(dp.writer, "%s %s %s %s\n", firehosePrefix, initPrefix, protocolReaderVersion, protoMessageType)

return dp, nil
}

Expand Down

0 comments on commit 8559c29

Please sign in to comment.