Open iwata opened 3 years ago
unclosetx cannot detect looks like this sample code.
unclosetx
func (h *Handler) fetchUser(ctx context.Context, userID string) (*database.User, error) { txn := h.repository.Client.ReadOnlyTransaction() // h.repository.Client is a Spanner client. user, err := database.FindUser(ctx, txn, userID) if err != nil { return nil, err } return user, nil }
unclosetx
cannot detect looks like this sample code.