OpenTDF Platform monorepo enabling the development and integration of _forever control_ of data into new and existing applications. The concept of forever control stems from an increasingly common concept known as zero trust.
BSD 3-Clause Clear License
18
stars
7
forks
source link
fix(policy): run migrations on db only once for all policy services #1040
Runs migrations just once and IFF at least one service requires a DB connection
Resolves pass by value error where struct pointer *db.Client outside for loop was not reassigned within startService function due to copy of value. Returns a *db.Client instead of resolving with **db.Client parameter for better readability.
Closes #742
*db.Client
outside for loop was not reassigned withinstartService
function due to copy of value. Returns a*db.Client
instead of resolving with**db.Client
parameter for better readability.Service starting logs after these changes: