Skip to content

Commit

Permalink
fix: add back options pre func
Browse files Browse the repository at this point in the history
Signed-off-by: Eray Ates <[email protected]>
  • Loading branch information
rytsh committed Feb 4, 2025
1 parent 19e276b commit aabb740
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions option.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ type optionClientValue struct {
TLSConfig *TLSConfig
}

func OptionsPre(opts []OptionClientFn, preOpts ...OptionClientFn) []OptionClientFn {
return append(preOpts, opts...)
}

// OptionClientFn is a function that configures the client.
type OptionClientFn func(*optionClientValue)

Expand Down

0 comments on commit aabb740

Please sign in to comment.