[PR #1243] [CLOSED] Comprehensive Update to process.go, api.go, common.js, auto_https_conn.go, and inbound.go Files #4871

Closed
opened 2026-10-31 20:43:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/1243
Author: @BlacKSnowDot0
Created: 11/20/2023
Status: ❌ Closed

Base: main ← Head: patch-1


📝 Commits (6)

📊 Changes

5 files changed (+147 additions, -278 deletions)

View changed files

📝 web/assets/js/util/common.js (+27 -78)
📝 web/network/auto_https_conn.go (+13 -9)
📝 web/service/inbound.go (+31 -82)
📝 xray/api.go (+54 -50)
📝 xray/process.go (+22 -59)

📄 Description

  • process.go: Simplified method implementations, ensured wait group waits at end, used bufio.Scanner for better reading.
  • api.go: Removed unnecessary pointers, simplified error handling, extracted helpers.
  • common.js: Updated common JS module (no details provided).
  • auto_https_conn.go: Removed redundant assignments, changed struct field to pointer to avoid copying, added error handling, optimized condition check.
  • inbound.go: Simplified database queries, reduced algorithm complexity, used map for selective updates, streamlined traffic record updates

These changes improve code quality, performance and readability in various parts of the codebase. The process module has cleaner method implementations. The API and connection modules have less redundant code and better error handling. The inbound module is more efficient in querying and updating the database.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/1243 **Author:** [@BlacKSnowDot0](https://github.com/BlacKSnowDot0) **Created:** 11/20/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (6) - [`2617422`](https://github.com/MHSanaei/3x-ui/commit/26174221aa1e3f364641fd528c9e60d9d058f53f) Update process.go - [`9a63a3b`](https://github.com/MHSanaei/3x-ui/commit/9a63a3ba4cf98bf67da6b2d7159dd19ff2875c7c) Update api.go - [`0b9847e`](https://github.com/MHSanaei/3x-ui/commit/0b9847e825834bc2e29c6a8b41ea48a3a0212a03) Update common.js - [`583a4f8`](https://github.com/MHSanaei/3x-ui/commit/583a4f87a9159edddbc632e9b0b171d2aa92e1e5) Merge pull request #1 from BlacKSnowDot0/patch-2 - [`b3f36d7`](https://github.com/MHSanaei/3x-ui/commit/b3f36d72391b0a259b7134c858355ea8d23ae3ad) Update auto_https_conn.go - [`9384179`](https://github.com/MHSanaei/3x-ui/commit/938417943d3235dc06db5509e36a4431f93ba698) Update inbound.go ### 📊 Changes **5 files changed** (+147 additions, -278 deletions) <details> <summary>View changed files</summary> 📝 `web/assets/js/util/common.js` (+27 -78) 📝 `web/network/auto_https_conn.go` (+13 -9) 📝 `web/service/inbound.go` (+31 -82) 📝 `xray/api.go` (+54 -50) 📝 `xray/process.go` (+22 -59) </details> ### 📄 Description - process.go: Simplified method implementations, ensured wait group waits at end, used bufio.Scanner for better reading. - api.go: Removed unnecessary pointers, simplified error handling, extracted helpers. - common.js: Updated common JS module (no details provided). - auto_https_conn.go: Removed redundant assignments, changed struct field to pointer to avoid copying, added error handling, optimized condition check. - inbound.go: Simplified database queries, reduced algorithm complexity, used map for selective updates, streamlined traffic record updates #### These changes improve code quality, performance and readability in various parts of the codebase. The process module has cleaner method implementations. The API and connection modules have less redundant code and better error handling. The inbound module is more efficient in querying and updating the database. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:43:14 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#4871
No description provided.