labbsr0x / whisper

A cloud-native Identity and OAuth Provider implemented with Golang and ORY Hydra
MIT License
12 stars 4 forks source link

Issue#8 Call db.Open only once #34

Closed claudiosegala closed 4 years ago

claudiosegala commented 4 years ago

This PR refers to #8 and adapt the code to use gorm.Open only once. My implementation was using the current project pattern and the recommendations given on these threads: [Question] Do you need to close the db connection every request? and Question on pooling/concurrency regarding recent documentation change, suggest clarification.

eabili0 commented 4 years ago

Thank you, @claudiosegala!