Skip to content

Commit

Permalink
feat: enable uuid rand pool for uuid generation
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag authored and flemzord committed May 12, 2023
1 parent 762cb41 commit a3ed10c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/core/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ import (
"github.com/google/uuid"
)

func init() {
uuid.EnableRandPool()
}

type Transactions struct {
Transactions []TransactionData `json:"transactions" binding:"required,dive"`
Transactions []TransactionData `json:"transactions"`
}

type TransactionData struct {
Postings Postings `json:"postings"`
Reference string `json:"reference"`
Metadata metadata.Metadata `json:"metadata" swaggertype:"object"`
Metadata metadata.Metadata `json:"metadata"`
Timestamp Time `json:"timestamp"`
}

Expand Down

0 comments on commit a3ed10c

Please sign in to comment.