(ctx context.Context)
| 53 | } |
| 54 | |
| 55 | func (s *Server) indirectMisuse(ctx context.Context) error { |
| 56 | return s.db.InTx(func(tx Store) error { |
| 57 | s.getConfig(ctx) // want "call to 's[.]getConfig' inside InTx uses outer store 's[.]db'; pass 'tx' through the helper or hoist the call" |
| 58 | return nil |
| 59 | }, nil) |
| 60 | } |
| 61 | |
| 62 | func (s *Server) shadowedLocalOK(ctx context.Context) error { |
| 63 | return s.db.InTx(func(tx Store) error { |