translate some comments to english

This commit is contained in:
Johann150 2022-11-10 00:36:39 +01:00
parent 5b61941e4c
commit 5d23aa9e69
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
2 changed files with 14 additions and 14 deletions

View file

@ -7,7 +7,7 @@ export class Instance {
public id: string; public id: string;
/** /**
* * Date and time this instance was first seen.
*/ */
@Index() @Index()
@Column('timestamp with time zone', { @Column('timestamp with time zone', {
@ -16,7 +16,7 @@ export class Instance {
public caughtAt: Date; public caughtAt: Date;
/** /**
* * Hostname
*/ */
@Index({ unique: true }) @Index({ unique: true })
@Column('varchar', { @Column('varchar', {
@ -26,7 +26,7 @@ export class Instance {
public host: string; public host: string;
/** /**
* * Number of users on this instance.
*/ */
@Column('integer', { @Column('integer', {
default: 0, default: 0,
@ -35,7 +35,7 @@ export class Instance {
public usersCount: number; public usersCount: number;
/** /**
* 稿 * Number of notes on this instance.
*/ */
@Column('integer', { @Column('integer', {
default: 0, default: 0,
@ -44,7 +44,7 @@ export class Instance {
public notesCount: number; public notesCount: number;
/** /**
* * Number of local users who are followed by users from this instance.
*/ */
@Column('integer', { @Column('integer', {
default: 0, default: 0,
@ -52,7 +52,7 @@ export class Instance {
public followingCount: number; public followingCount: number;
/** /**
* * Number of users from this instance who are followed by local users.
*/ */
@Column('integer', { @Column('integer', {
default: 0, default: 0,
@ -60,7 +60,7 @@ export class Instance {
public followersCount: number; public followersCount: number;
/** /**
* * Timestamp of the latest outgoing HTTP request.
*/ */
@Column('timestamp with time zone', { @Column('timestamp with time zone', {
nullable: true, nullable: true,
@ -68,7 +68,7 @@ export class Instance {
public latestRequestSentAt: Date | null; public latestRequestSentAt: Date | null;
/** /**
* HTTPステータスコード * HTTP status code that was received for the last outgoing HTTP request.
*/ */
@Column('integer', { @Column('integer', {
nullable: true, nullable: true,
@ -76,7 +76,7 @@ export class Instance {
public latestStatus: number | null; public latestStatus: number | null;
/** /**
* * Timestamp of the latest incoming HTTP request.
*/ */
@Column('timestamp with time zone', { @Column('timestamp with time zone', {
nullable: true, nullable: true,
@ -84,13 +84,13 @@ export class Instance {
public latestRequestReceivedAt: Date | null; public latestRequestReceivedAt: Date | null;
/** /**
* * Timestamp of last communication with this instance (incoming or outgoing).
*/ */
@Column('timestamp with time zone') @Column('timestamp with time zone')
public lastCommunicatedAt: Date; public lastCommunicatedAt: Date;
/** /**
* * Whether this instance seems unresponsive.
*/ */
@Column('boolean', { @Column('boolean', {
default: false, default: false,
@ -98,7 +98,7 @@ export class Instance {
public isNotResponding: boolean; public isNotResponding: boolean;
/** /**
* * Whether sending activities to this instance has been suspended.
*/ */
@Index() @Index()
@Column('boolean', { @Column('boolean', {

View file

@ -62,8 +62,8 @@ export default async (job: Bull.Job<DeliverJobData>) => {
if (res instanceof StatusError) { if (res instanceof StatusError) {
// 4xx // 4xx
if (res.isClientError) { if (res.isClientError) {
// HTTPステータスコード4xxはクライアントエラーであり、それはつまり // A client error means that something is wrong with the request we are making,
// 何回再送しても成功することはないということなのでエラーにはしないでおく // which means that retrying it makes no sense.
return `${res.statusCode} ${res.statusMessage}`; return `${res.statusCode} ${res.statusMessage}`;
} }