mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 01:42:25 -05:00 
			
		
		
		
	[bugfix] fix double firing bun.DB query hooks (#2124)
* improve bun.DB wrapping readability + comments, fix double-firing query hooks * fix incorrect code comment placement * fix linter issues * Update internal/db/basic.go * do as the linter commmands ... --------- Signed-off-by: kim <grufwub@gmail.com> Co-authored-by: Daenney <daenney@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								e70629e856
							
						
					
				
			
			
				commit
				
					
						d5d6ad406f
					
				
			
		
					 44 changed files with 645 additions and 535 deletions
				
			
		|  | @ -18,8 +18,6 @@ | |||
| package fileserver_test | ||||
| 
 | ||||
| import ( | ||||
| 	"context" | ||||
| 
 | ||||
| 	"github.com/stretchr/testify/suite" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/api/fileserver" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
|  | @ -111,7 +109,7 @@ func (suite *FileserverTestSuite) SetupTest() { | |||
| } | ||||
| 
 | ||||
| func (suite *FileserverTestSuite) TearDownSuite() { | ||||
| 	if err := suite.db.Stop(context.Background()); err != nil { | ||||
| 	if err := suite.db.Close(); err != nil { | ||||
| 		log.Panicf(nil, "error closing db connection: %s", err) | ||||
| 	} | ||||
| 	testrig.StopWorkers(&suite.state) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue