optimus icon indicating copy to clipboard operation
optimus copied to clipboard

Convert handler/adapter from interface to functions

Open sravankorumilli opened this issue 2 years ago • 3 comments

sravankorumilli avatar Feb 25 '22 03:02 sravankorumilli

The current adapters convert from one struct to another and are not adapters for behaviour. We need to convert all such adapter from using an interface to individual function. Function can be used to convert from one model to other.

sbchaos avatar Feb 25 '22 12:02 sbchaos

Done for api/handler/v1beta1/adapter.go Need to do for store/postgres/adapter.go

sbchaos avatar Jul 06 '22 10:07 sbchaos

@sbchaos Can you please link the corresponding PR with the issue?

ravisuhag avatar Jul 06 '22 11:07 ravisuhag