Skip to content

Commit

Permalink
Forgot to commit this previously
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Dec 8, 2023
1 parent 1845bc6 commit 596245e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ tmp/
private/
nexus/server/tests/assets/*.json
nexus/server/tests/results/actual/

go.work
go.work.sum
16 changes: 16 additions & 0 deletions flow/cmd/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package main

import (
"context"

"github.com/PeerDB-io/peer-flow/connectors/utils"
"github.com/PeerDB-io/peer-flow/generated/protos"
)

func (h *FlowRequestHandler) GetVersion(
ctx context.Context,
req *protos.PeerDBVersionRequest,
) (*protos.PeerDBVersionResponse, error) {
version := utils.GetEnvString("PEERDB_VERSION_SHA_SHORT", "unknown")
return &protos.PeerDBVersionResponse{Version: version}, nil
}

0 comments on commit 596245e

Please sign in to comment.