Skip to content

Commit

Permalink
Generated code from proto files
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub committed Jun 22, 2022
1 parent 8ce4f95 commit 920893e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
23 changes: 11 additions & 12 deletions java/src/test/java/trinsic/TemplatesDemo.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package trinsic;

import com.google.gson.Gson;
import trinsic.okapi.DidException;
import trinsic.services.TrinsicService;
import trinsic.services.verifiablecredentials.templates.v1.Templates;
import trinsic.services.verifiablecredentials.v1.VerifiableCredentials;

import java.io.IOException;
import java.util.HashMap;
import java.util.UUID;
import java.util.concurrent.ExecutionException;
import trinsic.okapi.DidException;
import trinsic.services.TrinsicService;
import trinsic.services.verifiablecredentials.templates.v1.Templates;
import trinsic.services.verifiablecredentials.v1.VerifiableCredentials;

public class TemplatesDemo {
public static void main(String[] args)
Expand Down Expand Up @@ -115,13 +114,13 @@ public static void run()
}

try {
// deleteCredentialTemplate() {
var deleteResponse =
trinsicService
.template()
.delete(Templates.DeleteCredentialTemplateRequest.newBuilder().setId(id).build())
.get();
// }
// deleteCredentialTemplate() {
var deleteResponse =
trinsicService
.template()
.delete(Templates.DeleteCredentialTemplateRequest.newBuilder().setId(id).build())
.get();
// }
} catch (Exception e) { // This is okay as an example
}
}
Expand Down
2 changes: 1 addition & 1 deletion python/trinsic/service_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __del__(self):

def close(self):
"""Close the underlying channel"""
if hasattr(self, '_channel') and self._channel is not None:
if hasattr(self, "_channel") and self._channel is not None:
try:
self._channel.close()
except RuntimeError:
Expand Down

0 comments on commit 920893e

Please sign in to comment.