Skip to content

Commit

Permalink
feat(encoding): use new codec registry
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <[email protected]>
  • Loading branch information
sagikazarmark committed Jun 24, 2024
1 parent 6e630e5 commit 7f90845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viper.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func New() *Viper {
v.typeByDefValue = false
v.logger = slog.New(&discardHandler{})

codecRegistry := codecRegistry{v: v}
codecRegistry := NewCodecRegistry()

v.encoderRegistry = codecRegistry
v.decoderRegistry = codecRegistry
Expand Down

0 comments on commit 7f90845

Please sign in to comment.