Skip to content

Commit

Permalink
Add readonly modifier to properties
Browse files Browse the repository at this point in the history
  • Loading branch information
gpahal committed Apr 10, 2018
1 parent aa0922d commit 262ccf1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { mergeLinReads, stringifyMessage } from "./util";
* Client is a transaction aware client to a set of Dgraph server instances.
*/
export class DgraphClient {
private clients: DgraphClientStub[];
private linRead: messages.LinRead;
private readonly clients: DgraphClientStub[];
private readonly linRead: messages.LinRead;
private debugMode: boolean = false;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/clientStub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { promisify1, promisify3 } from "./util";
* Stub is a stub/client connecting to a single dgraph server instance.
*/
export class DgraphClientStub {
private stub: services.DgraphClient;
private readonly stub: services.DgraphClient;
private promisified: {
alter(
op: messages.Operation,
Expand Down
4 changes: 2 additions & 2 deletions src/txn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import {
* after calling commit.
*/
export class Txn {
private dc: DgraphClient;
private ctx: messages.TxnContext;
private readonly dc: DgraphClient;
private readonly ctx: messages.TxnContext;
private finished: boolean = false;
private mutated: boolean = false;
private sequencingProp: messages.LinRead.Sequencing;
Expand Down

0 comments on commit 262ccf1

Please sign in to comment.