Skip to content

Commit

Permalink
Update diode-server/gen/dbstore/postgres/adapters.go
Browse files Browse the repository at this point in the history
Co-authored-by: Michal Fiedorowicz <[email protected]>
  • Loading branch information
ltucker and mfiedorowicz authored Dec 23, 2024
1 parent 6693290 commit 6727b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diode-server/gen/dbstore/postgres/adapters.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/netboxlabs/diode/diode-server/gen/diode/v1/reconcilerpb"
)

// ToProtobuf converts sqlc structure to analogous protobuf
func (log IngestionLog) ToProtobuf() (*reconcilerpb.IngestionLog, error) {
// ToProto converts sqlc structure to analogous protobuf
func (log IngestionLog) ToProto() (*reconcilerpb.IngestionLog, error) {
entity := &diodepb.Entity{}
if err := protojson.Unmarshal(log.Entity, entity); err != nil {
return nil, fmt.Errorf("failed to unmarshal entity: %w", err)
Expand Down

0 comments on commit 6727b17

Please sign in to comment.