Skip to content

Commit

Permalink
Re-add versions.go
Browse files Browse the repository at this point in the history
I missed adding this in a previous commit
  • Loading branch information
iskakaushik committed Dec 8, 2023
1 parent 288c32a commit ec931ad
Showing 1 changed file with 16 additions and 0 deletions.
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 ec931ad

Please sign in to comment.