You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
at the exitting of the function,
defer s.GetRepo().Close()
will produce clone of session, during s.GetRepo() call and then close it.
Why do we need this?
The text was updated successfully, but these errors were encountered:
file handlers.go:
function:
func (s *service) GetRepo() Repository { return &VesselRepository{s.session.Clone()} }
returns clone of current session.
then later:
at the exitting of the function,
defer s.GetRepo().Close()
will produce clone of session, during s.GetRepo() call and then close it.
Why do we need this?
The text was updated successfully, but these errors were encountered: