Remove deprecated function use

This commit is contained in:
Tom Wiesing 2023-11-02 13:31:15 +01:00
parent 873fdcd5c2
commit 9f7ec20593
No known key found for this signature in database

View file

@ -80,7 +80,7 @@ func (s server) Run(context wisski_distillery.Context) error {
zerolog.Ctx(context.Context).Info().Str("bind", s.Bind).Msg("listening public server")
publicL, err := net.Listen("tcp", s.Bind)
if err != nil {
return errServerListen.Wrap(err)
return errServerListen.WrapError(err)
}
defer publicS.Shutdown(context.Context)
go func() {